Bug 421292

Summary: PDF files when opened from KRunner's Document result section open in Gnome evince instead of Okular
Product: [Plasma] krunner Reporter: Syam <get.sonic>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: rdieter
Priority: NOR    
Version: 5.17.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Syam 2020-05-10 16:08:31 UTC
I have Fedora 31 KDE spin (Gnome desktop is not installed). Okular is the default application set for PDF files. 

STEPS TO REPRODUCE
1. Open KRunner by Alt+F2 and type "pdf" in the box
2. Click on any PDF file from the search result in "Document" category
3. The file is opened in Gnome evince

The problem is only with KRunner results belonging to "Document" section. PDF files in "Recent Documents" section open in Okular. When opened from Dolphin or by xdg-open, PDF files are opened in Okular, as expected.
In File Associations in System Settings, Okular is the first handler for application/pdf and evince is second.

This is possibly related to a particular KRunner plugin. I couldn't correctly guess it (file search or places, probably).
Comment 1 Syam 2020-06-06 13:27:16 UTC
Today, I tested it again and it is working like expected. PDF files are getting opened in Okular, as expected.
I have no idea how this got fixed. I had installed several updates from Fedora over these days. So no idea what fixed this.
Closing the report for now.