summarylogtreecommitdiffstats
path: root/gog-besiege
diff options
context:
space:
mode:
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