http://bugs.winehq.org/show_bug.cgi?id=10277
--- Comment #41 from Ambro ambro@b4ever.net 2008-11-30 04:26:57 --- I've already written something relatively functional. I've patched winemenubuilder to record created shortcuts (.lnk) to registry, along with some info. Then I've written a service which watches these files, and when it finds a nonexistent .lnk file, it removes the associated shortcuts on the user's desktop.
But there is a small problem. If the application installs a user-local desktop shortcut (~/.wine/windows/profiles/<user>/Desktop, which points to ~/Desktop), the .lnk file is of course visible on the desktop, along with the real shortcut (this can be seen without my patch). Because the .lnk files annoy users, they will delete them, which will make my service remove the real shortcut as well. I see two possible things to do: - Don't attempt to record user-local desktop shortcuts to the registry. This way, they will never be removed. - Don't point the Desktop folder (~/.wine/windows/profiles/<user>/Desktop) to the real desktop folder (~/Desktop). This way, removal will work, and the user will not be annoyed, but I'm afraid some apps use the Desktop folder for things other than shortcuts (e.g. Firefox saves downloads to desktop by default).
Does anyone see a better solution?
BTW, URLs are not implemented yet.