Hiding unwanted .desktop entries from the menu

Problem: There are a few desktop entries that I do not want to be shown in the menu.
Solution: I used to just delete them from /usr/share/applications, but apparently there was a smarter way. Just open the .desktop file, e.g. /usr/share/applications/CMake.desktop and add the NoDisplay option:

[Desktop Entry]
Version=1.0
Name=CMake
Comment=Cross-platform buildsystem
Exec=cmake-gui %f
Icon=CMakeSetup32.png
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Development;
StartupNotify=true
MimeType=application/x-cmakecache;
NoDisplay=true

Save and it should disappear from the menu.


One Comment on “Hiding unwanted .desktop entries from the menu”

  1. […] whenever I needed to customize some menu entry, I would just go to /usr/share/applications/ and edit the corresponding .desktop file. This applies the changes globally and whenever the program is […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s