https://bugs.kde.org/show_bug.cgi?id=479122
Bug ID: 479122 Summary: Konqueror on KF6 can't display PDFs using Okular part Classification: Applications Product: okular Version: 24.01.85 Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: okular-de...@kde.org Reporter: stefano.cro...@alice.it Target Milestone: --- I setup Konqueror so that it embeds PDF files using Okular part instead of opening them in the Okular application. However, with the KF6 versions of both Konqueror and Okular, this doesn't work: clicking on a PDF file results in Okular being launched. This happens because Konqueror uses KParts::PartLoader::partsForMimeType("application/pdf") and (at least on my system) the returned list doesn't contain "okularpart", despite Okular being installed and okularpart.so existing in the system. I think this is caused by two factors: - okularpart.so (at least on my system) is installed in /usr/lib64/qt6/plugins, while other parts (dolphinpart.so, arkpart.so and katepart.so) are installed in /usr/lib64/qt6/plugins/kf6/parts - okular_part.json only lists application/vnd.kde.okular-archive as mimetype After adding "application/pdf" to the list of mimetypes in okular_part.json, recompiling Okular and moving (actually, linking) okularpart.so to /usr/lib64/qt6/plugins/kf6/parts made KParts::PartLoader::partsForMimeType find okularpart correctly. I think that this problem doesn't only happen for PDFs but also for the other mimetypes supported by okularpart but not explicitly listed in okular_part.json. Note: in the bug report, I chose "Gentoo Packages" as platform: however, since the official Gentoo repository doesn't currently have packages for the KF6 versions of Okular and Konqueror, I installed them from the Gentoo KDE overlay (https://github.com/gentoo-mirror/kde.git). -- You are receiving this mail because: You are watching all bug changes.