Bug 461531 - application:<desktop file> entries started showing up in KRunner
Summary: application:<desktop file> entries started showing up in KRunner
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-07 06:32 UTC by Alexander Lohnau
Modified: 2022-11-07 13:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot describing the issue (42.65 KB, image/png)
2022-11-07 06:32 UTC, Alexander Lohnau
Details

Note You need to log in before you can comment on or make changes to this bug.
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