GNOME Bugzilla – Bug 608996
removing entry with applications-merged does not work
Last modified: 2010-02-04 16:11:01 UTC
Hi. I am not sure if this should be considered a bug or if it is me that is misunderstanding how to use gnome-menu but here goes... For the example, I want to remove gnome-search-tool from the main menu. For that, I added the following file: /etc/xdg/menus/applications-merged/no-gnome-search-tool.menu which contains: <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd"> <Menu> <Name>Applications</Name> <Menu> <Name>Accessories</Name> <Exclude> <Filename>gnome-search-tool.desktop</Filename> </Exclude> </Menu> </Menu> But gnome-search-tool still appears in the menu. Only with the following patch, it is indeed removed from the menu: --- applications.menu.orig Thu Feb 4 16:35:22 2010 +++ applications.menu Thu Feb 4 16:34:59 2010 @@ -15,9 +15,6 @@ <DefaultAppDirs/> <DefaultDirectoryDirs/> - <!-- Read in overrides and child menus from applications-merged/ --> - <DefaultMergeDirs/> - <!-- Accessories submenu --> <Menu> <Name>Accessories</Name> @@ -150,5 +147,8 @@ </And> </Include> </Menu> <!-- End Other --> + + <!-- Read in overrides and child menus from applications-merged/ --> + <DefaultMergeDirs/> </Menu> <!-- End Applications --> Am I doing something wrong that I this patch or? Thanks.
See discussion in bug 557443. If you want to remove it for your user only, that's not the way to go. If you want to remove it for all users, you can edit the .desktop file, or merge another directory that you're defining. But that should not be done in the default merged directories. *** This bug has been marked as a duplicate of bug 557443 ***
Sorry, I meant to remove it system-wide, not just for one user. Anyway, will look at bug 557443, thanks.