Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dk:howto:customize-menu [2009/12/05 16:56] – 77.254.221.69 | dk:howto:customize-menu [2017/03/18 18:30] (current) – removed skunnyk | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tilpas menuen i Xfce ====== | ||
- | Denne side beskriver hvordan du tilpasser menuen ved brug af xfcesktop **4.5 eller højere** og libxfce4menu til dit skrivebord. Bemærk, | ||
- | at der ikke findes en grafisk menuredigering til 4.6. Vi håber den vil komme tilbage i 4.8. | ||
- | ===== Hvad installerer xfdesktop ===== | ||
- | Xfdesktop installerer en menufil samt skrivebordsposter til menuen root (Kør, Terminal, Filhåndtering, | ||
- | at tilpasse din menu skal du ændre disse. | ||
- | |||
- | ===== Redigér menufilen ===== | ||
- | Opret mappe ~/ | ||
- | mkdir ${XDG_CONFIG_HOME: | ||
- | Kopiér den installerede til din hjemmemappe: | ||
- | cp $prefix/ | ||
- | |||
- | ===== Skjul root-poster ===== | ||
- | Hvis du vil fjerne menuelementer fra root-menuen, | ||
- | og derefter tilføj/ | ||
- | |||
- | xfdesktop installerer de følgende skribordspostfiler: | ||
- | |||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | For at skjule en specifik skrivebordspostfil kopierer du det til din hjemmemappe, | ||
- | |||
- | cp $prefix/ | ||
- | |||
- | og derefter ændre eller tilføj skrivebordspostnøglen NoDisplay: | ||
- | |||
- | NoDisplay=true | ||
- | |||
- | |||
- | === Fosel mellem NoDisplay og Hidden === | ||
- | {{wiki: | ||
- | |||
- | |||
- | ===== Create root entries ===== | ||
- | Your own menu items go to '' | ||
- | |||
- | In there, you can create standard desktop file entries per menu item, eg. for a menu item launching Eclipse, create a file named '' | ||
- | |||
- | [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 | ||
- | |||
- | In order for this to show up, you have to modify '' | ||
- | |||
- | <code xml> | ||
- | < | ||
- | < | ||
- | |||
- | < | ||
- | < | ||
- | |||
- | < | ||
- | < | ||
- | </ | ||
- | |||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | | ||
- | [...] | ||
- | </ | ||
- | |||
- | |||
- | ===== Edit entries ===== | ||
- | |||
- | Starting from version 4.5, libxfce4menu doesn' | ||
- | |||
- | Say that " | ||
- | |||
- | To create new menu items, you can create new desktop entry files inside that latter directory. | ||
- | |||
- | ===== Create submenus ===== | ||
- | To create a new submenu, 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, and after refreshing the menu if needed (see below), you should have a new submenu called " | ||
- | |||
- | ===== Reload the menu ===== | ||
- | |||
- | If you don't have file monitoring support, run '' | ||
- | |||
- | If the above does not work, you might also try to run '' | ||
- | |||
- | Enjoy! | ||
- | |||
- | ===== What, if it does not work? ===== | ||
- | questions unanswered: | ||
- | |||
- | 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? | ||
- | |||
- | A XFCE Lover that's got very upset. I setup several machines for my company. After migrating all the software to the new version 9.04 we realized we cannot use the custom menus that points to our software with specific variables. | ||
- | |||
- | Answer: In Jaunty the appropriate file might be found in / | ||
- | Also note, that you should not only extend your Layout-Section but also your Include-Section ... |