not detecting exact content type
Submitted by Stefan Sauer (gstreamer, gtkdoc dev)
Assigned to Alexander Larsson @alexl
Link to original bug (#541236)
Description
my app has data files in xml format, which I can detect based of doctype or namespace. This is the snippet from the xml that I install:
<magic priority="80">
</magic>
<comment>
buzztard song (xml)</comment>
</mime-type>
Problem is that e.g. the FileFilters in gtk Filechooser or in RecentChooser don't show any of those (they still see them as application/xml). Also nautilus with in gnome 2.20 is showing them after a click as the right type, but in gnome 2.22 it does not do that anymore.
Also:
gvfs-info -a "standard" melo1.xml ... attributes: standard::name: melo3.xml ... standard::content-type: application/xml standard::fast-content-type: application/xml
But:
gnomevfs-info ./melo1.xml | head -n3 Name : melo1.xml Type : Regular MIME type : application/xml
gnomevfs-info -s ./melo1.xml | head -n3 Name : melo1.xml Type : Regular MIME type : audio/x-bzt-xml