http://bugs.winehq.org/show_bug.cgi?id=10277
--- Comment #29 from Ambro ambro@b4ever.net 2008-07-06 10:27:07 --- The three patches I have just attached together provide you the ability to update the xdg database and remove shortcuts whose .lnk files have been removed using the command "winemenubuilder -s". It will only work for shortcuts created using the above patches. NOTE: wine tends to use "wineshelllink" from $PATH. Make sure wine is using my version of wineshelllink.
How it works: - wineshellink records created files to $WINEPREFIX/shortcuts - winemenubuilder records the .lnk locations of new shortcuts to HKCU/Wine/Software/WineMenuBuilder/Shortcuts. - "winemenubuilder -s" scans the registry for .lnk files, calls wineshellunlink on nonexistent .lnk files, and removes their registry entries
Right now, "winemenubuilder -s" it will only work good for menu shortcuts, and will automatically delete all recorded desktop shortcuts, as wine deletes their source .lnk files.