Wine pollutes "Open With" application list

Solution 1:

Remove wine*.desktop files from ~/.local/share/applications and edit ~/.local/share/applications/mimeinfo.cache

If you're feeling lazy you can just run:

sed -i '/wine/d' ~/.local/share/applications/mimeinfo.cache

and:

rm -r ~/.local/share/applications/wine*  

or all in one line:

rm -r ~/.local/share/applications/wine* ; sed -i '/wine/d' ~/.local/share/applications/mimeinfo.cache 

Solution 2:

It's a known problem. Here is the associated launchpad bug: https://bugs.launchpad.net/ubuntu/+source/wine1.2/+bug/420089

Unfortunately it's not an easy problem to fix in Wine (or Gnome), because there isn't a good way for figuring out when an application has been removed.