summarylogtreecommitdiffstats
path: root/gog-besiege
diff options
context:
space:
mode:
authorDan Beste2017-06-06 18:45:35 -0500
committerDan Beste2017-06-06 18:45:43 -0500
commit8cab4f07ff2b3f7603467ba7eb903d5971271879 (patch)
treef54412abeaadaa90f2bc7dc644fe7f4a6cd2bec9 /gog-besiege
downloadaur-gog-besiege.tar.gz
v2.2.0.3
Diffstat (limited to 'gog-besiege')
-rw-r--r--gog-besiege24
1 files changed, 24 insertions, 0 deletions
diff --git a/gog-besiege b/gog-besiege
new file mode 100644
index 00000000000..a071db13447
--- /dev/null
+++ b/gog-besiege
@@ -0,0 +1,24 @@
+#! /bin/bash
+
+pkgname='gog-besiege'
+pkgdir="/opt/${pkgname}/"
+run="${pkgdir}/start.sh"
+
+if hash firejail; then
+ echo "Firejail detected; attempting to enforce a sandbox..."
+ if [[ -f "${XDG_CONFIG_HOME}/firejail/${pkgname}.profile" ]]; then
+ echo "Firejail profile for ${pkgname} found in ${XDG_CONFIG_HOME}/firejail/"
+ echo "Enforcing a sandbox!"
+ firejail "${run}"
+ elif [[ -f "/etc/firejail/${pkgname}.profile" ]]; then
+ echo "Firejail profile for ${pkgname} found in /etc/firejail/"
+ echo "Enforcing a sandbox!"
+ firejail "${run}"
+ else
+ echo "No Firejail profile detected!"
+ echo "Skipping Firejail sandbox..."
+ "${run}"
+ fi
+else
+ "${run}"
+fi