summarylogtreecommitdiffstats
path: root/gog-bastion
diff options
context:
space:
mode:
authorJeremy Audet2019-02-02 16:59:36 -0500
committerJeremy Audet2019-02-02 17:00:33 -0500
commit41785085291660fc86fe61338dd224a0228bacc9 (patch)
tree22c091ffca3500c09d736c8a237513bbd0314ec7 /gog-bastion
parent01312520639b61ede61d21db32dcdd0eb3cac1fa (diff)
downloadaur-41785085291660fc86fe61338dd224a0228bacc9.tar.gz
Overhaul package
Among other things: * A newer package is available on GOG. Update the version and related logic. * Make the .desktop file comply with desktop-file-validate's suggestions. * Drop references to firejail. The stuff is nice, but I don't know how to maintain it. * Drop references to lgogdownloader. I've never been able to make it work end-to-end. * Drop PKGEXT override. That's something the user can do on a per-package basis if they like, or in their makepkg.conf.
Diffstat (limited to 'gog-bastion')
-rw-r--r--gog-bastion16
1 files changed, 4 insertions, 12 deletions
diff --git a/gog-bastion b/gog-bastion
index 328adee58934..0f139dd94a24 100644
--- a/gog-bastion
+++ b/gog-bastion
@@ -1,13 +1,5 @@
-#! /bin/sh
+#!/usr/bin/bash
-run="/opt/gog-bastion/start.sh"
-# The launcher fails unless in its dir.
-cd "$(dirname "$run")" || exit 1
-
-if which firejail >/dev/null 2>&1 && [ -z "$FIREJAIL_IGNORE" ]; then
- echo "Firejail detected. Enforcing a sandbox"
- echo "To bypass Firejail enforcement, run FIREJAIL_IGNORE=1 $run."
- firejail --caps.drop=all "$run"
-else
- "$run"
-fi
+# Setting TERM prevents the application from crashing with "System.Exception:
+# Magic number is wrong: 542." See: https://github.com/mono/mono/issues/11557
+TERM=xterm /opt/gog-bastion/start.sh