summarylogtreecommitdiffstats
path: root/gog-torchlight2
diff options
context:
space:
mode:
Diffstat (limited to 'gog-torchlight2')
-rw-r--r--gog-torchlight212
1 files changed, 12 insertions, 0 deletions
diff --git a/gog-torchlight2 b/gog-torchlight2
new file mode 100644
index 000000000000..e23dbaacad34
--- /dev/null
+++ b/gog-torchlight2
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+run='/opt/gog-torchlight2/start.sh'
+cd /opt/gog-crawl # The launcher fails unless in its dir.
+
+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