My *nix world

Add a new Xfce menu item

If you have installed a new application in your system that is not maintained by the system package manager (like aptitude, portage, yum, packman, etc), then maybe you have to add a new Xfce menu item in the system menu.

So here is what you have to do to add a new menu entry to the Xfce menus:

  • create a new empty file in the ~/.local/share/application folder named .desktop
  • edit that file to looks like the one below:
[Desktop Entry]
Type=Application
Categories=Utility;
Name=Disk Usage Analyzer
Comment=Disk usage analyzer
Exec=baobab
Icon=/usr/share/icons/OSX_Aluminium/128x128/apps/baobab.png
Terminal=false
StartupNotify=true

The Name represents the caption of your menu entry.

The Exec represents the name/full-path of your file that is represented by the menu entry.

Note that Category is the place where your menu will be added. There is a list of the well-known categories for the standard X Windows system desktops so if you want to add your menu to those standard categories (such Accessories, Internet, Office, System, etc) the you should provide the standard category name.

More info can be found at Xfce Wiki and Desktop Menu Specification web page of freedesktop.org.

To load immediately your new menu entry then reload the Xfce desktop manager with:

xfdesktop --reload

Now, if you think that this article was interesting don't forget to rate it. It shows me that you care and thus I will continue write about these things.

 
The following two tabs change content below.
Add a new Xfce menu item

Eugen Mihailescu

Founder/programmer/one-man-show at Cubique Software
Always looking to learn more about *nix world, about the fundamental concepts of math, physics, electronics. I am also passionate about programming, database and systems administration. 16+ yrs experience in software development, designing enterprise systems, IT support and troubleshooting.
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *