Chapter 3. Menu Editing and Configuration 11
Note
The user’s session must be restarted for the menu changes to take effect.
3.3. Removing Submenus for Individual Users
To remove the entire System Settings submenu for a user, use the <Deleted/> element in the user’s
$HOME/.config/menus/applications.menu file as shown:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<!-- File created by desktop-file-utils version 0.8 -->
<Menu>
<Name>Applications</Name>
<MergeFile>/etc/xdg/menus/applications.menu</MergeFile>
<!-- Removes the System Settings submenu from the Applications menu-->
<Menu>
<Name>System Settings</Name>
<Deleted/>
</Menu>
<!-- END of System Settings removal content -->
</Menu>
The other submenus of the Applications can be removed in similar fashion. Note that the name of the
submenus can be determined from the files located in the /usr/share/desktop-directories/
directory.
3.4. Removing Menu Items for All Users
To remove the Dasher menu item from the Accessories submenu, edit
/etc/xdg/menus/applications.menu, by adding the following before the final </Menu> tag
in the file:
...
<Menu>
<Name>Accessories</Name>
<Exclude>
<Filename>gnome-dasher.desktop</Filename>
</Exclude>
</Menu>
</Menu> <!-- End Applications -->
As mentioned above, the appropriate *.desktop file name to use for a given menu item can be
determined from the files located in the /usr/share/applications/ directory.