http://bugs.winehq.org/show_bug.cgi?id=12914
Summary: wineprefixcreate overrides custom entries in Explorer\Shell Folders Product: Wine Version: 0.9.59. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: minor Priority: P2 Component: tools AssignedTo: wine-bugs@winehq.org ReportedBy: aelschuring@hotmail.com
I have been playing with specifying custom paths for user shell folders, in order to be able to use the same wineprefix for multiple users (r/o C: drive, r/w D:). But it seems that every time I run wineprefixcreate, it overrides some of the paths specified in [Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders].
I'll shorten this up for brevity: arno@master:~$ wine --version wine-0.9.59 arno@master:~$ rm -fr .wine arno@master:~$ wineprefixcreate Could not load Mozilla. HTML rendering will be disabled. /home/arno/.wine updated successfully. arno@master:~$ grep '\profiles\' .wine/user.reg "AppData"="C:\windows\profiles\arno\Application Data" "Cookies"="C:\windows\profiles\arno\Cookies" "Desktop"="C:\windows\profiles\arno\Desktop" "Favorites"="C:\windows\profiles\arno\Favorites" "History"="C:\windows\profiles\arno\Local Settings\History" arno@master:~$ sed -i 's/(\profiles\\)arno/\1test/' .wine/user.reg arno@master:~$ grep '\profiles\' .wine/user.reg "AppData"="C:\windows\profiles\test\Application Data" "Cookies"="C:\windows\profiles\test\Cookies" "Desktop"="C:\windows\profiles\test\Desktop" "Favorites"="C:\windows\profiles\test\Favorites" "History"="C:\windows\profiles\test\Local Settings\History" arno@master:~$ wineprefixcreate Could not load Mozilla. HTML rendering will be disabled. /home/arno/.wine updated successfully. arno@master:~$ grep '\profiles\' .wine/user.reg "AppData"="C:\windows\profiles\arno\Application Data" "Cookies"="C:\windows\profiles\arno\Cookies" "Desktop"="C:\windows\profiles\test\Desktop" "Favorites"="C:\windows\profiles\test\Favorites" "History"="C:\windows\profiles\arno\Local Settings\History"
Also, the overrides that are displayed here do not come from userdef.reg (tested by modifying userdef.reg), they appear to be coming directly from [Software\Microsoft\Windows NT\CurrentVersion\ProfileList]\"ProfilesDirectory"
I'm not sure what the intended behaviour of wineprefixcreate should be (I think it should not modify existent keys, only add missing ones), but at least the inconsistent behaviour is a bug.