Bug 105816

Summary: Wrong gzip mimetype
Product: Portland Reporter: Joshua Krämer <joshua.kraemer>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Joshua Krämer 2018-03-30 11:30:15 UTC
"xdg-mime query filetype <filename>.tar.gz" returns: "application/x-gzip".

According to RFC 6713 [1], the correct mimetype would be: "application/gzip".

For example, the Ark (package manager) desktop file only includes the mimetype "application/gzip". Because of the wrong mimetype reported by xdg-mime, .tar.gz files are not opened with Ark as expected.

[1] https://tools.ietf.org/html/rfc6713
Comment 1 Rex Dieter 2018-05-10 14:56:34 UTC
xdg-mime doesn't do queries itself, but relies on DE-specific tools.

For example, on gnome,
gio info ...
or
gvfs-info ...


Further, those tools rely on the system's shared-mime-info database

In short, this is very likely not a xdg-utils issue, but one in either shared-mime-info or DE tools themselves


workarounds include:
* Add legacy application-x-gzip to supported mimetypes (to ark.desktop)
* update your DE tools and/or shared-mime-info

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.