Bug 506494 - Krunner ignores Hidden=true and NoDisplay=true in .desktop files
Summary: Krunner ignores Hidden=true and NoDisplay=true in .desktop files
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.4.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-02 14:53 UTC by username
Modified: 2025-07-02 15:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description username 2025-07-02 14:53:30 UTC
SUMMARY
It seems that Krunner does not follow the Hidden=true and NoDisplay=true option in the desktop file

STEPS TO REPRODUCE
1. Add Hidden=true or NoDisplay=true to any application. You can do it by directly editing .desktop file in ~/.local/share/applications or by using KDE Menu Editor
2. Open Krunner and start searching for application you just edited

OBSERVED RESULT
You still see hidden application

EXPECTED RESULT
When the .desktop file has the Hidden key set to true, the .desktop file must be ignored. When multiple .desktop files with the same name exists in multiple directories then only the Hidden key in the most important .desktop file must be considered: If it is set to true all .desktop files with the same name must be ignored

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Comment 1 username 2025-07-02 15:15:12 UTC
Forgot to mention, it only happens when ~/.config/menus/applications-kmenuedit.menu file exist. The file is created when you move items from one category to another using KDE Menu Editor. If you remove it, then Krunner start honor Hidden=true and NoDisplay=true again