"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
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.