https://bugs.kde.org/show_bug.cgi?id=363209

--- Comment #5 from Elvis Angelaccio <elvis.angelac...@kdemail.net> ---
AppImage now has its own mimetype in shared-mime-info [1].

However, after manually installing the mimetype [2], Ark still doesn't
open/extract AppImage files.
This is because Ark checks whether "application/x-iso9660-appimage" inherits
from "application/x-cd-image" (which is one of the mimetypes Ark is registered
with), but suprisingly this doesn't work: the appimage mimetype inherits from
"application/x-iso9660-image" (alias of "application/x-cd-image").
Unfortunately QMimeType doesn't like aliases and "resolves" them to their
actual mimetype ("application/x-cd-image" in this case).

This looks to me like a limitation in the Qt api, but we could workaround it in
some way:

1. By checking also the aliases of our registered mimetypes, or
2. By making the AppImage mime inherit from "application/x-cd-image"

1. should be doable but 2. could be a cleaner solution...

[1]:
https://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=01fa61fc002afdcf43f61e7df2d6cc6f6968d8d2
[2]: https://github.com/probonopd/AppImageKit/issues/144#issuecomment-227015057

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to