A few facts: I use Wine. Wine ships its own version of Notepad. For some files, this copy of Notepad has somehow become associated. There is no possibility of me ever actually wanting to open anything in Notepad.
I figure I could try and find out what Notepad is associated with and re-associate that with my editor of choice but that seems deeply tedious. Is there any global way to stop Notepad existing as a method for opening files?
text/plain
and some other types in the file~/.local/share/applications/mimeinfo.cache
; this effectively allows it as an alternative to anything gedit (or your default GUI editor) would otherwise open~/.local/share/applications/mimeinfo.cache
in a text editor and delete the lines with the MIME typestext/plain
andtext/html
wine-extension-txt.desktop
andwine-extension-htm.desktop
from~/.local/share/applications/
Removing the associations from
~/.local/share/*
will work temporarily, until you install something new and winemenubuilder runs again.Instead, you may also wish to prevent wine from creating file associations in the first place.