Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not select a prefix #2212

Open
u0-a63 opened this issue Apr 22, 2024 · 3 comments
Open

Can not select a prefix #2212

u0-a63 opened this issue Apr 22, 2024 · 3 comments

Comments

@u0-a63
Copy link

u0-a63 commented Apr 22, 2024

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
Copy link

greisch commented Apr 26, 2024

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
Copy link

greisch commented Apr 26, 2024

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
Copy link
Contributor

jre-wine commented Apr 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants