Bug 506494

Summary: Krunner ignores Hidden=true and NoDisplay=true in .desktop files
Product: [Plasma] krunner Reporter: username <linx.system.adm>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, linx.system.adm, natalie_clarius
Priority: NOR    
Version First Reported In: 6.4.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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