From a659b4e63edb0d32f8b90534e795c45ec9c7c9d7 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Thu, 2 Feb 2023 04:42:02 -0500 Subject: [PATCH] Make sure the wine variable gets set to something, if none of the conditions for setting it get called. --- audiogame-manager.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 4d3ca94..ef2eb7b 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -757,6 +757,8 @@ game_launcher() { exit 0 fi get_bottle "$game" + # make sure wine is actually set to something + export wine="${wine:-wine}" echo -n "launching " ${wine} --version local winePath="${game#*|}" @@ -868,8 +870,10 @@ game_launcher() { fi if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & + # switch to wine64 for 64 bit prefix. + [[ "${wine}" == "wine" ]] && export wine="wine64" fi - $wine start /d "${winePath}" "$wineExec" /realtime + ${wine:-wine} start /d "${winePath}" "$wineExec" /realtime fi exit 0 }