Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I add an application to Applications > Internet in Gnome Desktop running on CentOS 6.4?

Per this old Docs link, it suggests to edit /etc/xdg/menus/applications.menu.

How can I add /home/danny/some/path/myprog/prog (executable) to my Gnome Applications menu?

share|improve this question

migrated from serverfault.com Mar 28 '13 at 18:39

This question came from our site for system and network administrators.

up vote 8 down vote accepted

This is how I did it:

vi /usr/share/applications/newitem.desktop
[Desktop Entry]
Name=My Program

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

share|improve this answer
Since this is an application in the 'danny' account, you could put it in ~danny/.local/share/applications/newitem.desktop, which will only show up in the 'danny' user's menus. – jsbillings Apr 1 '13 at 0:54
Is it possible to put run as sudo(root) option ? – Gossamer Sep 21 '13 at 9:41

There is another solution by enabling an "edit menu" option.

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

yum install alacarte

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.