The menu configuration files for a given user are located in
the $HOME/.config/menus/ directory. The
*.menu files are XML configuration files
that allow you to override the system menu defaults.
For example, to remove the
menu item from the
submenu, edit the
applications.menu file in the
$HOME/.config/menus/ directory, adding a
new <Menu> section using the <Exclude> element as
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
<!-- File created by desktop-file-utils version 0.8 -->
<!-- Removes the Calculator from the Accessories submenu -->
<!-- END of Calculator removal content -->
The *.desktop file that corresponds to
a given menu item can be found in the
/usr/share/applications/ directory. The
gnome-gcalctool.desktop file corresponds to
the menu item. Note that
the name of the submenu (, in this
case) can be determined from the files located in the
Similar methods can be used to remove other items from the
menu and its submenus.
The user's session must be restarted for the menu changes
to take effect.