Bug 105816 - Wrong gzip mimetype
Summary: Wrong gzip mimetype
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Portland Bugs
QA Contact:
Depends on:
Reported: 2018-03-30 11:30 UTC by Joshua Krämer
Modified: 2018-05-10 14:56 UTC (History)
0 users

See Also:
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 ...
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.