summarylogtreecommitdiffstats
path: root/gog-serpent-in-the-staglands
diff options
context:
space:
mode:
Diffstat (limited to 'gog-serpent-in-the-staglands')
-rw-r--r--gog-serpent-in-the-staglands13
1 files changed, 13 insertions, 0 deletions
diff --git a/gog-serpent-in-the-staglands b/gog-serpent-in-the-staglands
new file mode 100644
index 000000000000..a8a59de7b938
--- /dev/null
+++ b/gog-serpent-in-the-staglands
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+run="/opt/gog-serpent-in-the-staglands/start.sh"
+# The launcher fails unless in its dir.
+cd "$(dirname "$run")" || exit 1
+
+if which firejail >/dev/null 2>&1 && [ -z "$FIREJAIL_IGNORE" ]; then
+ echo "Firejail detected. Enforcing a sandbox"
+ echo "To bypass Firejail enforcement, run FIREJAIL_IGNORE=1 $run."
+ firejail --caps.drop=all "$run"
+else
+ "$run"
+fi