GNOME Bugzilla – Bug 599347
Dirac .ts file detected as application/x-linguist
Last modified: 2009-10-23 11:21:49 UTC
A file such as this one: http://dirac.kw.bbc.co.uk/download/video/maybefinal/ed-tr1000.ts contains Dirac-encoded video, but gvfs-info returns standard::content-type: application/x-linguist standard::fast-content-type: application/x-linguist
-> GIO, however might not even be GIO's fault here. (Possibly related to bug #541236).
With a quick hacked up test application I got the following results: gicmo@ubudev ~/Coding/Temp % ./gfile /home/gicmo/Temp/ed-tr1000.ts First guess result [ed-tr1000.ts]: application/x-linguist (uncertain: no) Final result: application/x-linguist So a call to g_content_type_guess () returns application/x-linguist with result_uncertain set to no. This means that the call to xdg_mime_get_mime_types_from_file_name (basename, name_mimetypes, 10); (in gio/gcontenttype:917) returns just *one* result based on the extension (.ts). A quick grep in /usr/share/mime revealed that "x-linguist" really seems to be the only registered type for *.ts. So my bet is that this is a bug in the shared-mime-info not gio.
Filed on fd.o as https://bugs.freedesktop.org/show_bug.cgi?id=24690 Closing as NOTGNOME.