Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Desktop Administrator's Guide Oracle Solaris 11.1 Information Library |
1. Administering the Oracle Solaris Desktop
2. Managing User Preferences With GConf
Working With Menu Definition Files
Working With Directory Entry Files
Working With Desktop Entry Files
Adding and Modifying System Menus
How to Edit the Properties of a Menu
9. Overview of the Yelp Help Browser
10. Improving the Performance of the Oracle Solaris Desktop System
11. Disabling Features in the Oracle Solaris Desktop System
The two types of menus are system menus and user menus.
You can edit menu configuration files and menu data files manually to customize system menus.
You can add menus for all users in the following ways:
Using the file manager
Modifying the menu configuration files and menu data files
This task describes the file modification method.
For more information about directory entry files, see Working With Directory Entry Files.
For more information about .menu files, see Working With Menu Definition Files.
The content of the element should contain the name for the menu.
The content of the element should contain the name of the directory entry file.
The next time users log in, the menu should appear in the menu bar.
Troubleshooting
If you did not specify any matching rules in the <Include> element or if the rule did not match any desktop entries, then you might not see the menu in the menu bar.
Next Steps
To add an item to a menu, see How to Add an Item to a Menu.
For more information about desktop entry files, see Working With Desktop Entry Files.
The next time users log in, the menu item is displayed in the assigned location.
For more information about .directory files, see Working With Directory Entry Files.
For more information on desktop entry files, see Working With Desktop Entry Files.
The next time you log in, the menu item is not displayed in the menu.
Example 3-2 Deleting an Item From a Menu
The following example shows how to explicitly exclude the desktop entry for the dasher.desktop menu item from the applications.menu file.
<!-- ... --> <Menu> <Name>Accessibility</Name> <Directory>Accessibility.directory</Directory> <Include> <And> <Category>Accessibility</Category> <Not><Category>Settings</Category></Not> </And> </Include> <Exclude> <Filename>dasher.desktop</Filename> </Exclude> </Menu> <!-- ... -->
You can use the Main Menu preference tool to edit menus. Alternatively, you can manually create and edit a user menu file. For more information, see Oracle Solaris 11.1 Desktop User’s Guide.
To manually create a custom menu for a user, the $XDG_CONFIG_HOME/menus/applications.menu file must exist. If the $XDG_CONFIG_HOME environment variable is not set, the default ~/.config directory is used. Because $XDG_CONFIG_HOME is the first location that is searched for the applications.menu file, the $XDG_CONFIG_HOME environment variable takes precedence over all other menu files.
User menus can contain all elements described in the Working With Menu Definition Files. For a complete list of the allowed elements, see the XDG menu specification.