https://bugs.winehq.org/show_bug.cgi?id=41668
--- Comment #4 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- I understand that the symlinks are always reset on prefix update. I confirm this.
What I meant is that there is some way to control where Wine makes the symlinks point to.
I think it is up to the user to setup his environment for his needs.
If the user lets Wine decide where the userdirs are, then prefix update reset them to wherever they are now. This means that if the user did change his $HOME directory, the symlinks are updated all-in-once.
If the user wants to use custom userdirs, then he should use the available environment to tell Wine where the userdirs are. If the user changes his custom userdir structure he can reflect that in the environment and the next prefix update will set all the symlinks accordingly.
If Wine did not reset the symlinks, they could end up being obsolete and require manual update.
In my opinion, the current behavior is correct.
What I would do to fix the issue: - Change SHCreateSymbolicLinks to first use XDG_CONFIG_HOME to get XDG variables, then fallback to "$HOME/My Documents/*" or "$HOME/*" if necessary, - Add a section in the documentation/wiki about how to setup custom userdirs with XDG to override the default symlinks (globally and per-prefix).