summarylogtreecommitdiffstats
path: root/open-hexagon
diff options
context:
space:
mode:
authorzer0def2021-04-25 10:26:55 +0200
committergardenapple2021-04-26 16:37:03 +0300
commit11038b93f123d25bc482a763db3281dfca1dc747 (patch)
tree23a5a24d6581738d435525e6729b522de920b49e /open-hexagon
parentdf9722c8319b20104e57763d7281b8d2d1bfb214 (diff)
downloadaur-11038b93f123d25bc482a763db3281dfca1dc747.tar.gz
Fix default config population and dynamic linking
Diffstat (limited to 'open-hexagon')
-rwxr-xr-xopen-hexagon11
1 files changed, 5 insertions, 6 deletions
diff --git a/open-hexagon b/open-hexagon
index e5680bab6df1..7b1a82d58366 100755
--- a/open-hexagon
+++ b/open-hexagon
@@ -1,9 +1,8 @@
#!/bin/sh
-if id --name --groups --zero | grep --quiet --null-data --line-regexp --fixed-strings 'games'; then
- cd /usr/lib/open-hexagon
- ./SSVOpenHexagon
-else
- zenity --error --text="Your user must be in 'games' group."
- exit 1
+id -nG | grep -qE '[ ^]games[ $]'
+if [ "${?}" -ne 0 ]; then
+ zenity --error --text="Your user must be in 'games' group."
+ exit 1
fi
+LD_LIBRARY_PATH="$(dirname "$(readlink -f "${0}")")/../lib/open-hexagon${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" ../lib/open-hexagon/SSVOpenHexagon