How to add an item to the Applications menu?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
15
down vote

favorite
7












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
    15
    down vote

    favorite
    7












    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
      15
      down vote

      favorite
      7









      up vote
      15
      down vote

      favorite
      7






      7





      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















      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?







      centos gnome






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 14 '16 at 14:00









      Jeff Schaller

      33.9k851113




      33.9k851113










      asked Mar 28 '13 at 18:17









      Danny Beckett

      3661214




      3661214




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


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






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


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






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          18
          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
















          • 8




            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










          • any source or docs that describe what each field means?
            – spy
            Jun 16 '17 at 1:48

















          up vote
          9
          down vote













          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.






          share|improve this answer





























            up vote
            0
            down vote













            I don't have enough points to answer on spy's comment and
            also as an added think on what Danny Becket wrote, an explanation of the *.desktop file parameters can be found here



            https://wiki.archlinux.org/index.php/Desktop_entries#File_example





            share








            New contributor




            Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f70460%2fhow-to-add-an-item-to-the-applications-menu%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              18
              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
















              • 8




                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










              • any source or docs that describe what each field means?
                – spy
                Jun 16 '17 at 1:48














              up vote
              18
              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
















              • 8




                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










              • any source or docs that describe what each field means?
                – spy
                Jun 16 '17 at 1:48












              up vote
              18
              down vote



              accepted







              up vote
              18
              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












              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












              share|improve this answer



              share|improve this answer










              answered Mar 28 '13 at 18:41









              Danny Beckett

              3661214




              3661214







              • 8




                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










              • any source or docs that describe what each field means?
                – spy
                Jun 16 '17 at 1:48












              • 8




                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










              • any source or docs that describe what each field means?
                – spy
                Jun 16 '17 at 1:48







              8




              8




              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




              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




              Is it possible to put run as sudo(root) option ?
              – Gossamer
              Sep 21 '13 at 9:41












              any source or docs that describe what each field means?
              – spy
              Jun 16 '17 at 1:48




              any source or docs that describe what each field means?
              – spy
              Jun 16 '17 at 1:48












              up vote
              9
              down vote













              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.






              share|improve this answer


























                up vote
                9
                down vote













                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.






                share|improve this answer
























                  up vote
                  9
                  down vote










                  up vote
                  9
                  down vote









                  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.






                  share|improve this answer














                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Apr 23 '17 at 11:52









                  Zanna

                  2,4511023




                  2,4511023










                  answered Jan 7 '14 at 12:20









                  рüффп

                  73821528




                  73821528




















                      up vote
                      0
                      down vote













                      I don't have enough points to answer on spy's comment and
                      also as an added think on what Danny Becket wrote, an explanation of the *.desktop file parameters can be found here



                      https://wiki.archlinux.org/index.php/Desktop_entries#File_example





                      share








                      New contributor




                      Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.





















                        up vote
                        0
                        down vote













                        I don't have enough points to answer on spy's comment and
                        also as an added think on what Danny Becket wrote, an explanation of the *.desktop file parameters can be found here



                        https://wiki.archlinux.org/index.php/Desktop_entries#File_example





                        share








                        New contributor




                        Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.



















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I don't have enough points to answer on spy's comment and
                          also as an added think on what Danny Becket wrote, an explanation of the *.desktop file parameters can be found here



                          https://wiki.archlinux.org/index.php/Desktop_entries#File_example





                          share








                          New contributor




                          Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          I don't have enough points to answer on spy's comment and
                          also as an added think on what Danny Becket wrote, an explanation of the *.desktop file parameters can be found here



                          https://wiki.archlinux.org/index.php/Desktop_entries#File_example






                          share








                          New contributor




                          Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          share


                          share






                          New contributor




                          Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 9 mins ago









                          Christoforos

                          11




                          11




                          New contributor




                          Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Christoforos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f70460%2fhow-to-add-an-item-to-the-applications-menu%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay