diff options
author | Ainola | 2017-01-22 18:34:49 -0700 |
---|---|---|
committer | Ainola | 2017-01-22 18:34:49 -0700 |
commit | 8655cf39c6eb481954c6b60b5b008423415009b7 (patch) | |
tree | 5512eec3147b64f579ce21b5e7f131cf1407798f /gone-home-hib | |
parent | a30093b5f10f306f913e93e4b09b96ea4f5513ef (diff) | |
download | aur-gone-home-hib.tar.gz |
include firejail support
Diffstat (limited to 'gone-home-hib')
-rw-r--r-- | gone-home-hib | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gone-home-hib b/gone-home-hib new file mode 100644 index 000000000000..a564287768da --- /dev/null +++ b/gone-home-hib @@ -0,0 +1,12 @@ +#!/bin/sh + +run='/opt/gone-home-hib/GoneHome.ARCH' +cd /opt/gone-home-hib/ || exit 1 # 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 |