http://bugs.winehq.org/show_bug.cgi?id=10277
--- Comment #16 from Vincent Povirk madewokherd@gmail.com 2008-05-24 20:53:01 --- Created an attachment (id=13315) --> (http://bugs.winehq.org/attachment.cgi?id=13315) proof of concept patch
This is a rough attempt using the TryExec approach. Some issues: * We have to chmod +x the .lnk file, which is sort of hacky. * GNOME apparently expects the TryExec field to be strictly escaped (spaces replaced with \s and all). * GNOME does not notice immediately when .lnk files are removed. I had to restart gnome-panel before it would see the changes.
I've not tested with any other desktop environments.
The advantage over some monitoring and/or syncing approach is that this is much simpler to implement and will hide the links if ~/.wine is removed.