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 }