Make sure the wine variable gets set to something, if none of the conditions for setting it get called.
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user