Bug 461531

Summary: application:<desktop file> entries started showing up in KRunner
Product: [Plasma] krunner Reporter: Alexander Lohnau <alexander.lohnau>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot describing the issue

Description Alexander Lohnau 2022-11-07 06:32:11 UTC
Created attachment 153536 [details]
Screenshot describing the issue

These entries should not show up in KRunner.

Also, the ordering seems a bit messed up, because IMHO the recent file should not take presence over the command line/app results.
Comment 1 Bug Janitor Service 2022-11-07 06:53:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2310
Comment 2 Alexander Lohnau 2022-11-07 13:47:04 UTC
Git commit 8fb57f7d6baa6f92d1af537ac1afde43f89d852c by Alexander Lohnau.
Committed on 07/11/2022 at 06:48.
Pushed by alex into branch 'master'.

runners/recentdocuments: Only match files from kactivities and not other entries

This would for example cause `application:<some file>.desktop` entires to show up.
To avoid this, we have to ensure that our query starts with a /. After that we allow any folder name
and then any string that contains the given term.
Related: bug 461006

M  +1    -1    runners/recentdocuments/recentdocuments.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/8fb57f7d6baa6f92d1af537ac1afde43f89d852c