Skip to content

Commit

Permalink
Setup internal used environment variable WINE with absolute wine path
Browse files Browse the repository at this point in the history
In the error or verbosity case this helps to see the actual wine
executable used.

Closes: #2319
  • Loading branch information
rhabacker committed Jan 15, 2025
1 parent 9131317 commit ab80d85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -4873,7 +4873,10 @@ winetricks_wine_setup()
WINETRICKS_ORIGINAL_WINEPREFIX="${HOME}/.wine"
fi
_abswine="$(command -v "${WINE}" 2>/dev/null)"
if ! test -x "${_abswine}"; then
if test -x "${_abswine}"; then
WINE=${_abswine}
export WINE
else
w_die "WINE is ${WINE}, which is neither on the path nor an executable file"
fi
unset _abswine
Expand Down

0 comments on commit ab80d85

Please sign in to comment.