protonscr

[feature-request] setup_dxvk.sh: use $WINE from system environment

dxvkclosed
doitsujin/dxvk#2193 · opened 2021-07-29 by jl452 · updated 2021-09-28 · 2 comments · github
Jjl452 2021-07-29 github

replace

wine="wine"
wine64="wine64"
wineboot="wineboot"

to something like

WINE="${WINE:-wine}"
WINE64="${WINE}64"

example from Proton-6.13-GE-1/protonfixes/winetricks

Ddoitsujin maintainer 2021-07-29 github

Feel free to submit a PR.

AAhmed-E-86 2021-09-23 github
wine="$WINE"
wine64="${WINE}64"
wineboot="${WINE} wineboot"

This will work with all custom wine builds, including Proton or Proton-GE builds. The only remaining issue is if you do not use WINE=/path_to_wine_binary, you will end up with an error, but this issue can be fixed with this script:

if [ -n "$WINE" ]; then
   wine="$WINE"
   wine64="${WINE}64"
   wineboot="${WINE} wineboot"
fi

if [ -z "$WINE" ]; then
   wine="wine"
   wine64="wine64"
   wineboot="wineboot"
fi

I tested it, and it works without any issues.

Proton versions