summarylogtreecommitdiffstats
path: root/gog-jotun
diff options
context:
space:
mode:
authorJeremy Audet2019-05-22 21:33:45 -0400
committerJeremy Audet2019-05-22 21:39:20 -0400
commit3cd8fe25c9d25a05c7e78073aad5b41055d35d34 (patch)
treea71392c075029ced258237328dadaa3a9b994fa0 /gog-jotun
parent473b84c7086e7d40294cac1bc6c02c9c1255e3bf (diff)
downloadaur-3cd8fe25c9d25a05c7e78073aad5b41055d35d34.tar.gz
Simplify launch script
Drop references to firejail from launch script, and add a work-around for https://github.com/mono/mono/issues/11557. The result is a dramatically simpler one-line launch script.
Diffstat (limited to 'gog-jotun')
-rw-r--r--gog-jotun26
1 files changed, 4 insertions, 22 deletions
diff --git a/gog-jotun b/gog-jotun
index 9a9d9458b6d3..bf6bce8e0bcf 100644
--- a/gog-jotun
+++ b/gog-jotun
@@ -1,24 +1,6 @@
-#! /bin/bash
+#!/usr/bin/env bash
-pkgname='gog-jotun'
-pkgdir="/opt/${pkgname}/"
-run="${pkgdir}/start.sh"
+# https://github.com/mono/mono/issues/11557
+TERM=xterm /opt/gog-jotun/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
+# vim: sw=2 ts=2 et: