How to add an item to the Applications menu?

This is how I did it:

vi /usr/share/applications/newitem.desktop
[Desktop Entry]
Version=1.0
Name=My Program
Exec=/home/danny/some/path/myprog/prog
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;WebBrowser;
X-Desktop-File-Install-Version=0.15

An icon can be added by including Icon=/some/path.


There is another solution by enabling an edit menu option.

You can have this menu by installing the alacarte package with this command (as root):

yum install alacarte

After that, just restart your X server and you can edit your menus with a mouse right click on the toolbar.

Tags:

Gnome

Centos