Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 17084  / 2 Years ago, mon, february 28, 2022, 10:02:03

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!


More From » xubuntu

 Answers
4

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


[#42256] Wednesday, March 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
torlim

Total Points: 408
Total Questions: 113
Total Answers: 110

Location: Estonia
Member since Wed, May 27, 2020
4 Years ago
;