Bug 493267 - Incorrect handling of QGIS .qgz as .zip
Summary: Incorrect handling of QGIS .qgz as .zip
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-17 14:44 UTC by Henning
Modified: 2024-09-18 13:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2024-09-17 14:44:04 UTC
In Dolphin, if I associate a .qgz file to open with QGIS, I get asked "set zip files to be opened with this app?"

The .qgz files are project archives of the QGIS geodata analysis program. They are probably compressed with zip, but should be a different file type.

not sure where this can be done.

Adding a file association manually didnt work, but I didnt log out yet.

https://docs.qgis.org/3.34/en/docs/user_manual/appendices/qgis_file_formats.html#qgs-qgz-the-qgis-project-file-format

Fedora 40 Kinoite (KDE Atomic)
QGis 3.34.10
Comment 1 cwo 2024-09-18 13:58:30 UTC
Thank you for the bug report!

Applications should register their file types with the shared mime database (see https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/) to have their file formats be recognized. This is also how it works for other file formats that are compressed, like odt.

I can see in the QGIS repository that the deb and rpm packaging materials do contain the required information (e.g. https://github.com/qgis/QGIS/blob/master/debian/qgis.xml). Given that you use Kinoite, I assume that you installed QGIS using Flatpak. In my testing, the Flatpak version of QGIS did not seem to properly install this file, while the distribution-provided deb package did. As soon as I installed this version, the file was recognized as a QGIS project file.

Please report this issue to the provider of your flatpak. (In case you installed this from flathub, that would be the QGIS flathub repository at https://github.com/flathub/org.qgis.qgis) so that this can be properly fixed. Thanks!