http://bugs.winehq.org/show_bug.cgi?id=24390
Summary: Config files (mostly ~/.local/share) need a severe cleanup Product: Wine Version: 1.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: cousteaulecommandant@hotmail.com
Right now, removing a Wine install folder (a wineprefix) leaves a lot of config files behind it (menu entries, mime types...) which can't be easily removed due to its sparseness. The most elegant solution would be to put all these files on a special folder inside the wineprefix, and symlink the needed ones on the right config folder. This way, removing a wineprefix would just result on some broken links, which could be taken care of by a special script. Additionally, winecfg should have options to not create them.
Some of those files/directories are: 1> ~/.config/menus/applications-merged/wine-*.menu 2> ~/.local/share/applications/wine/ 3> ~/.local/share/applications/wine-extension-*.desktop and ~/.local/share/applications/wine-Programs-*.desktop (the latter is locale-dependent) 4> ~/.local/share/desktop-directories/wine-*.directory 5> ~/.local/share/icons/ (mostly all of them) 6> ~/.local/share/mime/application/x-wine-extension-*.xml and ~/.local/share/mime/packages/x-wine-extension-*.xml
(Some, but not all, of these entries are listed on http://wiki.winehq.org/FAQ#head-9893ae50079ca7a959258f0bc9a17aaf2e69b391)
I don't know what most of them do, but: (1) and (4) should be replaced by symlinks and put on the corresponding wineprefix. (2) should contain one directory for wineprefix, which would be a symlink to the actual directory. This would result on a separate "Programs" entry for each wineprefix. (Instead of Applications > Wine > Programs > FooSoft > Run Foo, it would be something like Applications > Wine > Foo prefix > FooSoft > Run Foo) (3) What's this?? (5) should be on each wineprefix, with the corresponding .desktop file pointing to them. (6) should be replaced by symlinks, and, if possible, put them on a directory and just symlink the directory. Or, in my opinion, could be totally removed from Wine, Linux's mime type detection works fine, thanks.
There should be a script that rearranged all these files on the corresponding wineprefixes. In order to do this, the `env WINEPREFIX="..."` string on ~/.local/share/applications/wine/.../*.desktop can be useful.
http://bugs.winehq.org/show_bug.cgi?id=24390
--- Comment #1 from Austin English austinenglish@gmail.com 2010-09-13 22:42:01 CDT --- (In reply to comment #0)
Additionally, winecfg should have options to not create them.
Disabling winemenubuilder.exe in winecfg should avoid creating most (if not all) of them.
http://bugs.winehq.org/show_bug.cgi?id=24390
--- Comment #2 from butraxz@gmail.com 2013-06-15 05:17:06 CDT --- This has not been updated for over 900 days.
Is this still an issue in 1.6-rc2 or higher or is this abandoned ?
https://bugs.winehq.org/show_bug.cgi?id=24390
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to butraxz from comment #2)
This has not been updated for over 900 days.
Is this still an issue in 1.6-rc2 or higher or is this abandoned ?
Abandoned.
https://bugs.winehq.org/show_bug.cgi?id=24390
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Austin English austinenglish@gmail.com --- Closing.