diff options
author | Dan Beste | 2017-05-28 17:37:42 -0500 |
---|---|---|
committer | Dan Beste | 2017-05-28 17:39:06 -0500 |
commit | aca50776ab38ae89bcc83ef3478572d5426c3685 (patch) | |
tree | afcef64b935bd7b56996f865e98ebad0b6567091 /gog-hollow-knight | |
download | aur-aca50776ab38ae89bcc83ef3478572d5426c3685.tar.gz |
Init
Diffstat (limited to 'gog-hollow-knight')
-rw-r--r-- | gog-hollow-knight | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gog-hollow-knight b/gog-hollow-knight new file mode 100644 index 000000000000..7e1175b8e385 --- /dev/null +++ b/gog-hollow-knight @@ -0,0 +1,24 @@ +#! /bin/bash + +pkgname='gog-hollow-knight' +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 |