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 professional system and network administrators.

    
@DennisKaarsemaker It doesn't relate to servers? I'm running CentOS :S –  Danny Beckett Mar 28 '13 at 18:21
1  
How is running bittorrent applications on a desktop related to servers/networking or desktop infrastructure in a professional environment? –  Dennis Kaarsemaker Mar 28 '13 at 18:23
    
@DennisKaarsemaker I had the wrong path on my clipboard... it's nothing to do with bittorrent. –  Danny Beckett Mar 28 '13 at 18:25
    
Yep, this is definitely off topic. I suggest you try our sister sites Unix & Linux and/or Stack Overflow, depending on the context you're doing this in. –  Michael Hampton Mar 28 '13 at 18:29

2 Answers 2

up vote 2 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.