diff options
author | Dan Beste | 2017-06-06 18:45:35 -0500 |
---|---|---|
committer | Dan Beste | 2017-06-06 18:45:43 -0500 |
commit | 8cab4f07ff2b3f7603467ba7eb903d5971271879 (patch) | |
tree | f54412abeaadaa90f2bc7dc644fe7f4a6cd2bec9 /gog-besiege | |
download | aur-8cab4f07ff2b3f7603467ba7eb903d5971271879.tar.gz |
v2.2.0.3
Diffstat (limited to 'gog-besiege')
-rw-r--r-- | gog-besiege | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gog-besiege b/gog-besiege new file mode 100644 index 00000000000..a071db13447 --- /dev/null +++ b/gog-besiege @@ -0,0 +1,24 @@ +#! /bin/bash + +pkgname='gog-besiege' +pkgdir="/opt/${pkgname}/" +run="${pkgdir}/start.sh" + +if hash firejail; then + echo "Firejail detected; attempting to enforce a sandbox..." + if [[ -f "${XDG_CONFIG_HOME}/firejail/${pkgname}.profile" ]]; then + echo "Firejail profile for ${pkgname} found in ${XDG_CONFIG_HOME}/firejail/" + echo "Enforcing a sandbox!" + firejail "${run}" + elif [[ -f "/etc/firejail/${pkgname}.profile" ]]; then + echo "Firejail profile for ${pkgname} found in /etc/firejail/" + echo "Enforcing a sandbox!" + firejail "${run}" + else + echo "No Firejail profile detected!" + echo "Skipping Firejail sandbox..." + "${run}" + fi +else + "${run}" +fi |