After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 608996 - removing entry with applications-merged does not work
removing entry with applications-merged does not work
Status: RESOLVED DUPLICATE of bug 557443
Product: gnome-menus
Classification: Core
Component: layout
2.28.x
Other OpenBSD
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on:
Blocks:
 
 
Reported: 2010-02-04 15:41 UTC by Antoine Jacoutot
Modified: 2010-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Antoine Jacoutot 2010-02-04 15:41:22 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.
Comment 1 Vincent Untz 2010-02-04 16:04:34 UTC
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 ***
Comment 2 Antoine Jacoutot 2010-02-04 16:11:01 UTC
Sorry, I meant to remove it system-wide, not just for one user.
Anyway, will look at bug 557443, thanks.