Removing Submenus For Individual Users; Removing Menu Items For All Users; Removing System Menus For All Users - Red Hat DESKTOP Deployment Manual

Table of Contents

Advertisement

Chapter 3. Menu Editing and Configuration
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
<!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
directory.

3.4. Removing Menu Items for All Users

To
remove
the
/etc/xdg/menus/applications.menu
in the file:
...
<Menu>
<Name>Accessories</Name>
<Exclude>
<Filename>gnome-dasher.desktop</Filename>
</Exclude>
</Menu>
</Menu> <!-- End Applications -->
As mentioned above, the appropriate
determined from the files located in the
Dasher
menu
item
, by adding the following before the final </Menu> tag
*.desktop
/usr/share/applications/
file as shown:
/usr/share/desktop-directories/
Accessories
from
the
file name to use for a given menu item can be
submenu,
directory.
11
edit

Advertisement

Table of Contents
loading

Table of Contents