Skip to content

KUrlNavigator: do not hardcode supported archive formats

KProtocolInfo::archiveMimetypes() allows to query the information from the the metadata of the protocol handler itself, thus avoiding the need to do double book-keeping with all its troubles (missing 3rd-party ones, more formats supported in newer versions).

Found while trying to understand why just adding application/x-zstd-compressed-tar to formats supported by the archive KIO slave (for the tar: protocol) in network/kio-extras@37f9f01c53bad0bff2ecb68471ad0f3c56c0e13 still had Dolphin having issues to properly navigate into such archives, but not other archive types.

Should be the more flexible solution compared to maintaining that list like done by https://phabricator.kde.org/D23490 :)

@dfaure @alex @ahmadsamir @meven

Edited by Friedrich W. H. Kossebau

Merge request reports