From 5cc4eca7fd303fa6d393ee4831bcf106111cad42 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 17 Dec 2024 06:15:02 -0500 Subject: [PATCH] Fixed some places where wine wasn't being properly set. --- audiogame-manager.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 9ac00fb..1a024db 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -816,7 +816,11 @@ game_installer() { # remove games game_removal() { - wine="${wine:-/usr/bin/wine}" + if [[ "$(uname -m)" == "aarch64" ]]; then + export wine="${wine:-/usr/bin/wine}" + else + export wine="${wine:-/usr/bin/wine}" + fi mapfile -t lines < <(sed -e '/^$/d' -e '/^[[:space:]]*#/d' "${configFile}" 2> /dev/null) if [[ ${#lines} -eq 0 ]]; then echo "No games found." @@ -872,6 +876,11 @@ game_removal() { # kill games that are stuck kill_game() { + if [[ "$(uname -m)" == "aarch64" ]]; then + export wine="${wine:-/usr/bin/wine}" + else + export wine="${wine:-/usr/bin/wine}" + fi mapfile -t lines < <(sed '/^$/d' "${configFile}" 2> /dev/null) if [[ ${#lines} -eq 0 ]]; then echo "No games found." @@ -1079,7 +1088,11 @@ game_launcher() { fi get_bottle "${game[0]}" # make sure wine is actually set to something - export wine="${wine:-/usr/bin/wine}" + if [[ "$(uname -m)" == "aarch64" ]]; then + export wine="${wine:-/usr/bin/wine}" + else + export wine="${wine:-/usr/bin/wine}" + fi echo -n "launching " ${wine} --version # kill any previous existing wineservers for this prefix in case they didn't shut down properly.