summarylogtreecommitdiffstats
path: root/gog-crawl
diff options
context:
space:
mode:
authorruniq2017-05-19 19:49:46 +0200
committerruniq2017-05-19 19:49:46 +0200
commitcf22a0e7884bd767201a828b4b7bef4166716447 (patch)
treef44a03bd5e725ff1434a591c6b080a9246fa705c /gog-crawl
downloadaur-gog-crawl.tar.gz
Initial commit
Diffstat (limited to 'gog-crawl')
-rw-r--r--gog-crawl12
1 files changed, 12 insertions, 0 deletions
diff --git a/gog-crawl b/gog-crawl
new file mode 100644
index 000000000000..48c3c7b64c72
--- /dev/null
+++ b/gog-crawl
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+run='/opt/gog-crawl/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