Mr. Pig’s House of Bacon

January 23, 2007

Xfce4 System Menu

Filed under: General Computers — Mr. Pig @ 6:55 pm

Personally, I love Xfce4 mainly because of it’s ability to be a robust desktop and window manager without using much ram at all. The only problem I have with it is it’s menu editor. Xfce4 has a system menu which appears when you right click on the desktop – in itself, a great feature. However, if you do not have a package manager that adds .desktop files to your system Xfce4 does not offer any way to add applications to the system menu. So, time and time again, I find myself typing in command after command in my terminal because I fail to remember where the fuck the .desktop files go. When I finally give up I spend about 10 min searching Google until I find a web page that has the file string. So for anyone that wants to add anything to their Xfce4 System Menu (or any other menu in any window manager) do the following:

  1. Open the terminal
  2. Login to a super user shell (su)
  3. cd /usr/share/applications
  4. nano .desktop (replace with something you will be able to identify the app with)
  5. Add the following to the file, save and exit:

[Desktop Entry]
Encoding=UTF-8
Name=Name to show in menu
Type=Application
Comment=Tool-tip Text
Exec=Command to exicute
Icon=IconIfYouHaveOne
Categories=Application;OtherCategories;

2 Responses to “Xfce4 System Menu”

  1. mark Says:

    THANK YOU!!!

    you’re so right about struggling to remember the names of rarely-used commands.

    i use quicklauncher (a panel tool) for commonly used stuff, but there are lots of things i don’t use very often and they’d just clog up the layout if i put them in the quick launcher.

    xfce4-menueditor lets you add things to the menu but it won’t let you add things to the applications submenus. I’m still not entirely sure how the submenus are decided since some of my .desktop files mention things like “AudioVideo” but the menu entry shows up in the “multimedia” submenu.

    sorry, that’s a much longer comment than i was planning on leaving, but never mind. Thanks again!

  2. Mr. Pig Says:

    Not a problem – if you ever let WINE install things it will sometimes dump things in the System Menu as well.

    It puts them in ~/.local/share/applications/

Leave a Reply