Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.66k stars 389 forks source link

Can not select a prefix #2212

Open u0-a63 opened 2 months ago

u0-a63 commented 2 months ago

Hi,

Whenever I try to select a prefix in Winetricks (I'm using Debian 12.5.0, fully updated) it gives me this error: warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "".

How do I fix this?

greisch commented 2 months ago

Same problem in Debian SID using wine 9.0~repack-4 winetricks in old versions of wine use "wine64" when 64bits prefix is detected ; but in this version of wine there is no more "wine64" program, and instead a only one "wine" program. wintricks adds code to detect this case but for some reason its fail....

work around: $ WINE64=wine winetricks

greisch commented 2 months ago

See #2035 Debian use a wrapper script "wine" that run /usr/lib/wine/wine (ELF 32bits) or /usr/lib/wine/wine64 (ELF 64bits)

jre-wine commented 2 months ago

Thanks for the workaround @greisch, I didn't think about that yet! So luckily there's a way to use the current version from here on Debian, not only the patched one from the debian repo :) You may optimize the workaround to: WINE64=/usr/lib/wine/wine64 winetricks

And a pedantic remark: the wrapper script doesn't choose one of the two binaries, but only falls back to wine64 if wine (32-bit) does not exist. In complete setups always the wine (32-bit) binary is called by the wrapper script and then Wine (probably wineserver) itself decides which binaries to use in the end.

austin987 commented 1 day ago

Can you try this with current winetricks (from git). I believe @jre-wine fixed this a while back.