diff options
author | Dan Beste | 2017-01-27 20:26:18 -0600 |
---|---|---|
committer | Dan Beste | 2017-01-27 20:28:07 -0600 |
commit | fe54a438d7ef7ffebb67345f0772f27485591ce7 (patch) | |
tree | 6b06740d8bb9461f0e0aa0696fcc81b2bc8980b7 /gog-stardew-valley | |
parent | d8f5ec5208f415f5713b88713e060dffebc690d4 (diff) | |
download | aur-fe54a438d7ef7ffebb67345f0772f27485591ce7.tar.gz |
Init
Diffstat (limited to 'gog-stardew-valley')
-rw-r--r-- | gog-stardew-valley | 13 |
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 |