Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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.

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
1  
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

 
discard

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.