Ubuntu: Getting rid of a mimetype entry
Posted
by Epaga
on Server Fault
See other posts from Server Fault
or by Epaga
Published on 2010-06-18T11:28:52Z
Indexed on
2010/06/18
11:34 UTC
Read the original article
Hit count: 479
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?
© Server Fault or respective owner