Bug 470712

Summary: Can't launch Okular using KRunner in Plasma 6
Product: [Plasma] krunner Reporter: Nate Graham <nate>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, natalie_clarius, nicolas.fella
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2023-06-06 17:49:12 UTC
STEPS TO REPRODUCE
1. Alt+Space to activate KRunner
2. Type "Okular"
3. Activate the app result

OBSERVED RESULT
Notification from Plasma Workspace saying:
> Launching Okular (Failed)
> No Exec field in okularTxt.desktop 

EXPECTED RESULT
Okular launches

ADDITIONAL INFORMATION
Launching Okular works from Task Manager or Kickoff (including after searching for it, which uses KRunner internally), so there must be a difference in what specifically KRunner is doing.

The referenced file lives on my system at ~/kde/usr5/share/kservices5/okularTxt.desktop--presumably since Okular is still building with KF5--and it's lived there in KF5 times too. I'm in a Plasma 6 session though, so theoretically the contents of that folder shouldn't be relevant as my P6 stuff lives at ~/kde/usr6. Additionally, if I copy the file to ~/kde/usr6/share/kservices6/, nothing changes.
Comment 1 Nicolas Fella 2023-06-06 19:48:30 UTC
I haven't checked yet, but if my theory is right then it will be fixed with https://invent.kde.org/frameworks/kservice/-/merge_requests/145
Comment 2 Nate Graham 2023-06-09 15:17:18 UTC
It was. And that was merged; marking this as fixed now, since it's fixed now.