diff options
Diffstat (limited to 'gog-west-of-loathing')
-rw-r--r-- | gog-west-of-loathing | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gog-west-of-loathing b/gog-west-of-loathing new file mode 100644 index 000000000000..cfd25c42683d --- /dev/null +++ b/gog-west-of-loathing @@ -0,0 +1,24 @@ +#! /bin/bash + +pkgname='gog-west-of-loathing' +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 |