This is just a quick tip. Wine has the ability to register itself to open files in Windows programs automatically. Sometimes that conflicts with what I want. For instance, it registered the JPEG file format on my linux system. Gnome 2.26.3 does not allow you to set another program as the default when this has happened.
These file extensions are registered in clear-text files that end in .desktop, so a quick command in our favorite shell utility will tell us where we have wine registration files:
$ find -name *.desktop
./.local/share/applications/wine/Programs/Microsoft Office Word Viewer 2003.desktop
./.local/share/applications/wine-extension-wbk.desktop
./.local/share/applications/wine-extension-mhtml.desktop
./.local/share/applications/wine-extension-its.desktop
./.local/share/applications/wine-extension-chm.desktop
./.local/share/applications/wine-extension-rtf.desktop
./.local/share/applications/wine-extension-jfif.desktop
./.local/share/applications/wine-extension-xml.desktop
./.local/share/applications/wine-extension-gif.desktop
./.local/share/applications/wine-extension-dochtml.desktop
./.local/share/applications/wine-extension-html.desktop
./.local/share/applications/wine-extension-dothtml.desktop
./.local/share/applications/wine-extension-mht.desktop
./.local/share/applications/wine-extension-hlp.desktop
./.local/share/applications/wine-extension-png.desktop
./.local/share/applications/wine-extension-txt.desktop
./.local/share/applications/wine-extension-dot.desktop
./.local/share/applications/wine-extension-xsl.desktop
./.local/share/applications/wine-extension-ini.desktop
./.local/share/applications/wine-extension-jpe.desktop
./.local/share/applications/wine-extension-air.desktop
./.local/share/applications/wine-extension-htm.desktop
./.local/share/applications/wine-extension-doc.desktop
./.local/share/applications/wine-extension-jpg.desktop
./.local/share/applications/wine-extension-jpeg.desktop
./.local/share/applications/wine-extension-wri.desktop
That’s a few registrations for control of my files… let’s try to clean it up:
$ rm .local/share/applications/wine-extension-{jpg,jpeg,doc,htm,jpe,ini,xsl,dot,txt,png,html,gif,xml,jfif,rtf}.desktop
Aha, now Nautilus opens the GIMP without a right-click.