Ubuntu: Getting rid of a mimetype entry
- by Epaga
I have a pesky mimetype entry that I can't seem to get rid of. Here is the current situation:
xdg-mime query filetype myfile.mfe
application/pesky
Using assogiate I have found out the information about this mime type entry (but can't delete it there). I have the following 'pesky.xml' XML file which was used to create the mime type (as far as I can tell, since it exactly matches the entry in assogiate...):
<?xml version='1.0'?>
<mime-info xmlns='http://www.freedesktop.org/standard'>
<mime-type type="application/pesky">
<comment>my pesky type</comment>
<glob pattern="*.mfe"/>
<magic priority="100">
<match type="string" offset="0" value="application/pesky"/>
</magic>
</mime-type>
<mime-info>
However, the following has no effect:
sudo xdg-mime uninstall --mode system --novendor pesky.xml
The file association remains. Any ideas?