summarylogtreecommitdiffstats
path: root/gog-owlboy
diff options
context:
space:
mode:
authorDan Beste2017-01-27 13:57:07 -0600
committerDan Beste2017-01-27 14:01:56 -0600
commit73d97ef942c9bf125451e784b4c70ab586cdba43 (patch)
tree7b06b196e3d4cce450c1e47e6fd08a481274828c /gog-owlboy
downloadaur-73d97ef942c9bf125451e784b4c70ab586cdba43.tar.gz
Init
Diffstat (limited to 'gog-owlboy')
-rw-r--r--gog-owlboy13
1 files changed, 13 insertions, 0 deletions
diff --git a/gog-owlboy b/gog-owlboy
new file mode 100644
index 00000000000..0e19fcd06d8
--- /dev/null
+++ b/gog-owlboy
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+run="/opt/gog-owlboy/start.sh"
+# The launcher fails unless in its dir.
+cd /opt/gog-undertale/ || 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