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