On Thu Apr 2 14:31:29 2026 +0000, Jactry Zeng wrote:
I think keeping $HOME/.wine as a fallback is also good for Linux/BSD desktops that don't support XDG (headless server?). For macOS, maybe we will prefer using something like "\$HOME/Library/Application\ Support/Wine" instead. Personally, changes like this for reducing dot files/folders under $HOME are welcome to me, but there is a concern that users will lose their configuration and applications in the old wine prefix if they don't notice this change and copy their wine prefix to the new location, this can be confusing. Please also squash patches that are for the same purpose into a single commit. I'd prefer using $HOME/.wine/ if it exists, but never creating it; if it doesn't, use $XDG_DATA_DIR/wine/, or $HOME/.local/share/wine/ if that env isn't set either. My system (Debian+MATE) has a well populated ~/.local/share/, but doesn't set $XDG_DATA_DIR.
Also, if we're going to consider four or five locations ($WINEPREFIX, $HOME/.wine/, $XDG_DATA_HOME/wine/, $HOME/.local/share/wine/, $HOME/Library/Application Support/Wine/), we should probably not duplicate that logic three times. Better refactor it to a shared function. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10543#note_134830