Hiding unwanted .desktop entries from the menu
Posted: 2012-06-24 | Author: slackalaxy | Filed under: desktop | Tags: .desktop, menu |1 CommentProblem: 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.
[…] 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 […]