Bug 459835

Summary: Portal window won't show Okular as option to open pdf files
Product: [Plasma] xdg-desktop-portal-kde Reporter: Uberkeyser <soeren.rabenstein>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: VERIFIED FIXED    
Severity: normal CC: aleixpol, jgrulich, nate
Priority: NOR    
Version First Reported In: 5.25.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.26
Sentry Crash Report:

Description Uberkeyser 2022-09-29 20:24:47 UTC
SUMMARY
If (Gtk) application (in my case Geary email client) invokes to open a pdf file, the "Select an Application to Open..." portal window gives a selection of installed pdf capable applications, but notably missing is KDE's own Okular. I can click the button to show all installed applications and select Okular from a huge list. But this association will not be stored, next time a pdf file handler is triggered Okular has to be manually selected from the big list again.
***


STEPS TO REPRODUCE
1.  Double click a pdf attachment in Geary (running under KDE)

OBSERVED RESULT
Portal Window shows icon selection for all(?) installed pdf applications except for Okular

EXPECTED RESULT
It should show the icon for Okular as a possible selection

SOFTWARE/OS VERSIONS 
Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.15.0-48-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 590 Series

ADDITIONAL INFORMATION
A minor, but awkward bug. Okular is great, you can present it to the people. Not need for modesty ;)
Comment 1 Nate Graham 2022-10-09 19:03:11 UTC
Fixed by Harald Sitter with https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/6377ed4fab0eb1296264cedc9012530acf5f1d9d in Plasma 5.26!
Comment 2 Uberkeyser 2022-10-11 14:46:16 UTC
(In reply to Nate Graham from comment #1)
> Fixed by Harald Sitter with
> https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/
> 6377ed4fab0eb1296264cedc9012530acf5f1d9d in Plasma 5.26!

I can confirm the fix on my system.
Thanks, Harald and Nate.
Comment 3 Nate Graham 2022-10-11 15:06:12 UTC
Yay!