After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 599347 - Dirac .ts file detected as application/x-linguist
Dirac .ts file detected as application/x-linguist
Status: RESOLVED NOTGNOME
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-10-22 21:08 UTC by Gabriel Burt
Modified: 2009-10-23 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gabriel Burt 2009-10-22 21:08:13 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
Comment 1 A. Walton 2009-10-22 21:10:46 UTC
-> GIO, however might not even be GIO's fault here. (Possibly related to bug #541236).
Comment 2 Christian Kellner 2009-10-23 09:57:05 UTC
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.
Comment 3 Christian Kellner 2009-10-23 11:21:49 UTC
Filed on fd.o as https://bugs.freedesktop.org/show_bug.cgi?id=24690

Closing as NOTGNOME.