no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | howto:customize-menu [2012/11/25 19:09] – [Unanswered] cocoonair | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Customize the Xfce menu ====== | ||
+ | This page describes how to customize the menu, using Xfdesktop **4.5 or higher**. | ||
+ | |||
+ | A GNU-licensed graphical menu editor for LXDE, [[http:// | ||
+ | |||
+ | ===== What xfdesktop installs ===== | ||
+ | Xfdesktop installs a menu file and .desktop files which together with non-xfdesktop .desktop files define the menu. To customize your menu you need to modify them. The method described here modifies the menu file identified by the $XDG_CONFIG_HOME variable (usually null, so ~/ | ||
+ | |||
+ | ===== When xfdesktop implements your changes ==== | ||
+ | If the menu file's directory exists when the xfdesktop session starts, changes to the menu file are implemented immediately. | ||
+ | |||
+ | ===== Copy the menu file ===== | ||
+ | This is only necessary if you want to change the hardcoded entries (usually above the Settings sub-menu and below the last sub-menu) or to change the sub-menu definitions. | ||
+ | |||
+ | Create ~/ | ||
+ | mkdir ${XDG_CONFIG_HOME: | ||
+ | Copy the installed menu file to where xfdesktop will look for it before looking for the installed menu file ($prefix = /usr on most systems): | ||
+ | cp $prefix/ | ||
+ | or | ||
+ | cp $prefix/ | ||
+ | |||
+ | ===== Copy a .desktop file ===== | ||
+ | For example, to copy the Web Browser' | ||
+ | cp $prefix/ | ||
+ | or | ||
+ | cp / | ||
+ | ===== Hide menu entries ===== | ||
+ | If you want to hide menu entries from all menus, copy their .desktop files and edit them to add a '' | ||
+ | |||
+ | >> {{wiki: | ||
+ | >> As explained[[http:// | ||
+ | |||
+ | ===== Hide only root entries ===== | ||
+ | If you only want to remove menu items from the root menu only, copy their .desktop files and edit them to remove Category X-Xfce-Toplevel. | ||
+ | |||
+ | Xfdesktop installs the following desktop entry files in the root menu ($prefix = /usr on most systems): | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | For example, to remove Web Browser from the root menu, copy its .desktop file and edit it, changing '' | ||
+ | |||
+ | ===== Add entries ===== | ||
+ | Create a .desktop file for each entry required. | ||
+ | [Desktop Entry] | ||
+ | Version=1.0 | ||
+ | Type=Application | ||
+ | Encoding=UTF-8 | ||
+ | Exec=eclipse | ||
+ | Icon=eclipse | ||
+ | StartupNotify=false | ||
+ | Categories=X-XFCE; | ||
+ | OnlyShowIn=XFCE; | ||
+ | Name=Eclipse | ||
+ | Comment=Eclipse Java IDE | ||
+ | If you prefer to work in a GUI (allows browsing for the icon) you can create the .desktop file using | ||
+ | exo-desktop-item-edit --create-new ~/ | ||
+ | but the new file will only have category Application so will probably need editing afterwards. | ||
+ | |||
+ | The categories determine where the new entry will be displayed. For display in the root menu, include category X-Xfce-Toplevel. | ||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <Or> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </Or> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | Any .desktop files with categories including Accessibility, | ||
+ | |||
+ | ===== The Other sub-menu ===== | ||
+ | If there are any .desktop files which are configured to be displayed in the xfdesktop menu but do not have any categories which include them in any of the defined menus, the Other sub-menu will be displayed and will display those entries. | ||
+ | |||
+ | If you have an Other sub-menu and do not want it, copy the .desktop file and modify its categories so it is included in one of the other sub-menus. | ||
+ | |||
+ | ===== Create sub-menus ===== | ||
+ | To create a new sub-menu, add a new " | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Next, create ~/ | ||
+ | |||
+ | [Desktop Entry] | ||
+ | Version=1.0 | ||
+ | Type=Directory | ||
+ | Icon=file-manager | ||
+ | Name=Folders | ||
+ | Comment=Folders viewed in a file manager | ||
+ | |||
+ | This provides the displayed name of the subdirectory as well as an appropriate icon. | ||
+ | |||
+ | Finally, create .desktop files in your ~/ | ||
+ | |||
+ | [Desktop Entry] | ||
+ | Version=1.0 | ||
+ | Type=Application | ||
+ | Exec=/ | ||
+ | Icon=file-manager | ||
+ | StartupNotify=false | ||
+ | Categories=X-Folders; | ||
+ | OnlyShowIn=XFCE | ||
+ | Name=home | ||
+ | Comment=home displayed in Thunar | ||
+ | |||
+ | With all this in place, you should have a new submenu called " | ||
+ | |||
+ | ===== Forcing changes ===== | ||
+ | This is not usually necessary and may not work anyway; logging out of the Xfce session and back in always works. | ||
+ | |||
+ | If the menu is not automatically updated with your changes, try | ||
+ | xfdesktop --reload | ||
+ | If that doesn' | ||
+ | killall -HUP xfdesktop | ||
+ | |||
+ | ===== Questions ===== | ||
+ | ==== Answered ==== | ||
+ | |||
+ | **Question: | ||
+ | **Answer:** In Jaunty the appropriate file might be found in / | ||
+ | |||
+ | **Question: | ||
+ | **Answer:** Menu file changes are implemented immediately if the menu file's directory exists when the xfdesktop session starts. | ||
+ | |||
+ | **Question: | ||
+ | **Answer:** No. The menu file defines which categories of entry go where. Your further application will appear in the defined place(s). If not, compare its categories with the categories in the menu file and adjust accordingly. | ||
+ | |||
+ | ==== Unanswered ==== | ||
+ | |||
+ | * With which command can I set a start-up-password for an application in the *.desktop file? | ||
+ | * What do i do, if the above does //not// work? (only xfce's own desktop files are seen, not even the one created with exo-desktop-item-edit, | ||
+ | * Where do i find a log or anything like that, actually giving me a clue other than simply empty space in the menu? | ||
+ | * I run Jaunty and need to make the menu to be multi-level, |