Wrong result from xdg-mime query filetype

Bug #1718096 reported by Hibou57 (Yannick Duchêne)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

`man xgd-mime` says:

> query filetype FILE: Returns the file type of FILE in the form of a MIME type.

However, it actually returns MIME type with MIME encoding:

   $ xdg-mime query filetype <filename>
   > text/x-python; charset=utf-8

After the man page, it should return something like `file --mime-type`:

    $ file -b --mime-type <filename>
    > text/x-python

But instead, it returns something like `file --mime`:

    $ file -b --mime <filename>
    > text/x-python; charset=utf-8

Either the man page is wrong or `wdg-mime` is wrong.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/Freedesktop. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in xdg-utils (Ubuntu):
importance: Undecided → Low
Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) wrote :

Seems it displays the correct answer now. May be there was a recent update or else it's something I did not noticed.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug then

Changed in xdg-utils (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.