summarylogtreecommitdiffstats
path: root/gog-yooka-laylee
diff options
context:
space:
mode:
authorDan Beste2017-04-11 12:40:06 -0500
committerDan Beste2017-04-11 12:40:34 -0500
commit7af8c6ad1d5760f5290ca9d6b54a836ca7e6da36 (patch)
tree17a7561ed1a36259e2b93d3302689ffe0e0b6825 /gog-yooka-laylee
downloadaur-7af8c6ad1d5760f5290ca9d6b54a836ca7e6da36.tar.gz
Init
Diffstat (limited to 'gog-yooka-laylee')
-rwxr-xr-xgog-yooka-laylee24
1 files changed, 24 insertions, 0 deletions
diff --git a/gog-yooka-laylee b/gog-yooka-laylee
new file mode 100755
index 000000000000..1222f7eeec93
--- /dev/null
+++ b/gog-yooka-laylee
@@ -0,0 +1,24 @@
+#! /bin/bash
+
+pkgname='gog-yooka-laylee'
+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