8

I'd like to add some items to my Xfce "root menu", see picture for location:

enter image description here

Searching the web gave a couple of possibilities (different XML files etc), but it appears that Xubuntu has customized it quite a bit. Maybe I just overlooked the settings? I also tried LXmenueditor, which does not access the root menus.

Where is the location of the configs for Xubuntu? Would it be possible to get stock-Xfce right click-on-desktop functionality without breaking anything? By that I mean: right click on desktop and have the Xfce menu instead of going through Xubuntu's submenu to access it.

Thanks for your time!

fossfreedom
  • 172,746
marto
  • 1,391

4 Answers4

11

versions 11.04 - 13.10

enter image description here

As the picture shows - "test" is a root menu which has been added.

To do this will require a couple of folders to be created:

mkdir -p ~/.config/menus
mkdir -p ~/.local/share/applications

Next copy the standard menu template file into the local menus folder

cp /etc/xdg/xdg-xubuntu/menus/* ~/.config/menus

Note - the stock XFCE menu could also be used - I prefer this menu so I've used it in my example:

cp /etc/xdg/menus/* ~/.config/menus

Now create our test menu - its in .desktop file-format

leafpad ~/.local/share/applications/test.desktop

copy and paste the following:

[Desktop Entry]
Version=1.0
Type=Application
Name=test
Comment=
Icon=acroread
Exec=acroread
Path=
Terminal=false
StartupNotify=false
Categories=X-Xfce-Toplevel;

The important bit is the last line - it must have X-Xfce-Toplevel as a category

Edit our custom menu:

leafpad ~/.config/menus/xfce-applications.menu

Add a new entry as shown:

enter image description here

Finally - lets use the custom menu file:

Right click Start and choose properties:

enter image description here

Choose the custom menu option and navigate and select the custom menu file ~/.config/menus/xfce-applications.menu

enter image description here

fossfreedom
  • 172,746
  • Awesome, thx! Would you happen to know how I can get rid of the Menu on Desktop? – marto Nov 06 '11 at 23:42
  • Nevermind! To use just the root menu, I disabled the Desktop Icons in desktop-settings. Thanks again – marto Nov 07 '11 at 00:02
2

If you're using 4.10 or 4.12, then you can edit the Menu using alacarte (screenshot) or menulibre.

enter image description here

You may also have a more dynamic menu experience if you were using xfce4-whiskermenu.

See also:

landroni
  • 5,941
  • 7
  • 36
  • 58
  • Whiskermenu is good, but this topic was about the "root" menu / Desktop Menu – marto Mar 05 '14 at 15:29
  • 1
    Sure. Doesn't alacarte help with that? And whiskermenu also uses the root menu, is it not? – landroni Mar 05 '14 at 15:38
  • Not sure why, but after some reinstall changes with alacarte did not apply to any menu. – marto Mar 05 '14 at 19:13
  • Which version of Xfce? It should work with >= 4.10, but NOT with 4.8. – landroni Mar 05 '14 at 20:50
  • 4.10. Alacarte shows options to edit/add menus, but does not apply changes. I must add that my system is pretty messy (transformed ubuntu install to xubuntu, added gnome-shell and i3 etc) - maybe something broke along the way – marto Mar 08 '14 at 01:59
  • I think alacarte applies changes automatically when you hit close. Try again. Perhaps try to use a Custom menu file: copy the default file to a different location, and edit that. I suspect that it should work. – landroni Mar 08 '14 at 07:19
0

Here is a way adding with Application UI:

  1. Right client Application button located in toolbar. The menu, click "Edit Applications"
  2. Then popup window shows all Application menus, you can navigate to groups and click the group, click "+" button on the window header, then "Add Launcher"
Bejond
  • 101
-1

right click on destkop and have the XFCE menu instead of going thru Xubuntu's submenu to access it.

From Settings Manager - Desktop - Menus tab - enable the show on right click there.

Not sure about menu editing.