Skip to content

MIME-Type x-alpm-package interferes with the Ark archive manager

The KDE archive manager Ark currently can not open *.pkg.tar.* files on Manjaro. The relevant discussion on the KDE bug tracker indicates this is caused by the application/x-alpm-package MIME type (x-alpm-package.xml) that is distributed with Pamac.

This is the problem. Your *.pkg.tar.zst files are being detected with this mimetype, which is not supported by Ark.

From a quick google search, application/x-alpm-package seems to be a Manjaro-specific mimetype installed by their pamac tool.

Since they associate this mimetype to multiple glob patterns (no idea why), I don't think we can support it from the Ark side.

As far as I understand, this issue could be solved by defining x-*-compressed-alpm-package MIME types, similar to the existing x-*-compressed-tar MIME types defined by FreeDesktop. Each such type would inherit from both x-alpm-package and the corresponding x-*-compressed-tar MIME type. This would also necessitate a x-uncompressed-alpm-package or similar that inherits from x-tar for *.pkg.tar files. The x-alpm-package type would then have no <glob> elements at all.

EDIT: The measures described above do not work as indended, because of how Ark determines the file’s MIME type. See my comment on the KDE bug tracker for more information.

EDIT: The KDE bug has been fixed, so this solution will now work. As I have been unable to create a merge request, I have created a patch file that implements the needed changes. data_mime_x-alpm-package_delta.patch

Edited by Janfel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information