Fixed some places where wine wasn't being properly set.
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user