Re: GtkFileFilter / GtkRecentFilter not using exact mime detection.
- From: Stefan Kost <ensonic hora-obscura de>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkFileFilter / GtkRecentFilter not using exact mime detection.
- Date: Wed, 02 Jul 2008 15:44:59 +0300
hi,
can it be a bug in the backend instead? I mean the part the provides the
mime-type? gio/gnome-vfs? Can it be a gio regression? On last
gnome-version when I clicked such a file in nautilus it was showing the
exact type then, now it does not anymore.
$ gvfs-info -a "standard" ../../tests/songs/melo3.xml
...
attributes:
standard::name: melo3.xml
...
standard::content-type: application/xml
standard::fast-content-type: application/xml
I've also checked the freedesktop.org.xml. I don't see what possible I
do different in my xml snippet:
<mime-type type="audio/x-bzt-xml">
<glob pattern="*.xml" weigth="80"/>
<magic priority="80">
<match type="string" value="<buzztard" offset="0:100"/>
<match type="string" value="http://www.buzztard.org/" offset="0:100"/>
</magic>
<sub-class-of type="application/xml" />
<comment>buzztard song (xml)</comment>
</mime-type>
I've filed a ticket under:
http://bugzilla.gnome.org/show_bug.cgi?id=541236
for gio - not sure that this is the culprit though.
Stefan
Stefan Kost schrieb:
hi,
I am using GtkFileFilter / GtkRecentFilter in my app with mime-type
filters. Unfortunately the filters use only the quick way (looking at
extensions). Can the somehow be configured to do exact sniffing?
Stefan
> 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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]