Creating custom menus in Applications-menu tab in CentOS7 GNOME

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











up vote
0
down vote

favorite












I have created a .menu file in /etc/xdg/menus/applications-merged/, created .directory file in /usr/share/desktop-directories/ and the various .desktop files i want to be in my custom menu under /usr/share/applications with a custom Categories extension Categories=X-nameofcategory yet still no menu appearing in my applications menu.



I am wondering if there is a step i am missing, i am not using alacarte because there are multiple applications that i need to create and alacarte is very manual, having to add directory paths for each icon, executable and there is no drag/drop method either. I had assumed there was a standard way to do this and have followed the steps that freedesktop describes but i am still at a loss. Any help or insight would be appreciated!







share|improve this question
























    up vote
    0
    down vote

    favorite












    I have created a .menu file in /etc/xdg/menus/applications-merged/, created .directory file in /usr/share/desktop-directories/ and the various .desktop files i want to be in my custom menu under /usr/share/applications with a custom Categories extension Categories=X-nameofcategory yet still no menu appearing in my applications menu.



    I am wondering if there is a step i am missing, i am not using alacarte because there are multiple applications that i need to create and alacarte is very manual, having to add directory paths for each icon, executable and there is no drag/drop method either. I had assumed there was a standard way to do this and have followed the steps that freedesktop describes but i am still at a loss. Any help or insight would be appreciated!







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have created a .menu file in /etc/xdg/menus/applications-merged/, created .directory file in /usr/share/desktop-directories/ and the various .desktop files i want to be in my custom menu under /usr/share/applications with a custom Categories extension Categories=X-nameofcategory yet still no menu appearing in my applications menu.



      I am wondering if there is a step i am missing, i am not using alacarte because there are multiple applications that i need to create and alacarte is very manual, having to add directory paths for each icon, executable and there is no drag/drop method either. I had assumed there was a standard way to do this and have followed the steps that freedesktop describes but i am still at a loss. Any help or insight would be appreciated!







      share|improve this question












      I have created a .menu file in /etc/xdg/menus/applications-merged/, created .directory file in /usr/share/desktop-directories/ and the various .desktop files i want to be in my custom menu under /usr/share/applications with a custom Categories extension Categories=X-nameofcategory yet still no menu appearing in my applications menu.



      I am wondering if there is a step i am missing, i am not using alacarte because there are multiple applications that i need to create and alacarte is very manual, having to add directory paths for each icon, executable and there is no drag/drop method either. I had assumed there was a standard way to do this and have followed the steps that freedesktop describes but i am still at a loss. Any help or insight would be appreciated!









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 27 '17 at 11:20









      jamalm

      5911




      5911




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          No one seems to know or wasn't able to answer so i'll throw up the solution I found!



          There are 3 locations you should be concerned with:



          • /usr/share/desktop-directories

          • /etc/xdg/menus/applications-merged

          • /usr/share/applications

          Bear in mind the last location is system-wide specific, if you want it just for your user, use: ~/.local/share/applications



          Firstly we:



          1. Create a file called APPNAME.menu (substitute APPNAME for whatever you want to call it) in the folder location /etc/xdg/menus/applications-merged


          2. Input these contents:



            <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
            "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
            <Menu>
            <Name>Applications</Name> <!-- This is necessary for your directory to appear in the applications drop down -->
            <Menu> <!--app -->
            <Name>app</Name>
            <Directory>APPNAME.directory</Directory>
            <Include>
            <Category>APPNAME</Category>
            </Include>
            </Menu> <!-- End app -->
            </Menu> <!-- End Applications -->




          3. Save the file and create another file called APPNAME.directory in the folder location ( it should be the same name specified in the .menu file)
            /usr/share/desktop-directories with these contents:



            [Desktop Entry]
            Type=Directory
            Name=AppName
            Icon=/path/to/icon



          Note the .directory filename should be exactly the same as the .directory name you entered in the .menu file above.




          1. Create a standard .desktop file in ~/.local/share/applications or /usr/share/applications with these contents (substituting for your own program of course and the Categories=line MUST BE the same as the name you gave the .directory file eariler)



            #!/usr/bin/env xdg-open
            [Desktop Entry]
            Version=1.0
            Type=Application
            Terminal=false
            Exec=/path/to/executable.sh
            Name=ApplicationToRun
            Icon=/path/to/icon
            Categories=APPNAME
            Comment=Comment for users







          share|improve this answer




















            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%2f407267%2fcreating-custom-menus-in-applications-menu-tab-in-centos7-gnome%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            No one seems to know or wasn't able to answer so i'll throw up the solution I found!



            There are 3 locations you should be concerned with:



            • /usr/share/desktop-directories

            • /etc/xdg/menus/applications-merged

            • /usr/share/applications

            Bear in mind the last location is system-wide specific, if you want it just for your user, use: ~/.local/share/applications



            Firstly we:



            1. Create a file called APPNAME.menu (substitute APPNAME for whatever you want to call it) in the folder location /etc/xdg/menus/applications-merged


            2. Input these contents:



              <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
              "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
              <Menu>
              <Name>Applications</Name> <!-- This is necessary for your directory to appear in the applications drop down -->
              <Menu> <!--app -->
              <Name>app</Name>
              <Directory>APPNAME.directory</Directory>
              <Include>
              <Category>APPNAME</Category>
              </Include>
              </Menu> <!-- End app -->
              </Menu> <!-- End Applications -->




            3. Save the file and create another file called APPNAME.directory in the folder location ( it should be the same name specified in the .menu file)
              /usr/share/desktop-directories with these contents:



              [Desktop Entry]
              Type=Directory
              Name=AppName
              Icon=/path/to/icon



            Note the .directory filename should be exactly the same as the .directory name you entered in the .menu file above.




            1. Create a standard .desktop file in ~/.local/share/applications or /usr/share/applications with these contents (substituting for your own program of course and the Categories=line MUST BE the same as the name you gave the .directory file eariler)



              #!/usr/bin/env xdg-open
              [Desktop Entry]
              Version=1.0
              Type=Application
              Terminal=false
              Exec=/path/to/executable.sh
              Name=ApplicationToRun
              Icon=/path/to/icon
              Categories=APPNAME
              Comment=Comment for users







            share|improve this answer
























              up vote
              2
              down vote



              accepted










              No one seems to know or wasn't able to answer so i'll throw up the solution I found!



              There are 3 locations you should be concerned with:



              • /usr/share/desktop-directories

              • /etc/xdg/menus/applications-merged

              • /usr/share/applications

              Bear in mind the last location is system-wide specific, if you want it just for your user, use: ~/.local/share/applications



              Firstly we:



              1. Create a file called APPNAME.menu (substitute APPNAME for whatever you want to call it) in the folder location /etc/xdg/menus/applications-merged


              2. Input these contents:



                <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
                "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
                <Menu>
                <Name>Applications</Name> <!-- This is necessary for your directory to appear in the applications drop down -->
                <Menu> <!--app -->
                <Name>app</Name>
                <Directory>APPNAME.directory</Directory>
                <Include>
                <Category>APPNAME</Category>
                </Include>
                </Menu> <!-- End app -->
                </Menu> <!-- End Applications -->




              3. Save the file and create another file called APPNAME.directory in the folder location ( it should be the same name specified in the .menu file)
                /usr/share/desktop-directories with these contents:



                [Desktop Entry]
                Type=Directory
                Name=AppName
                Icon=/path/to/icon



              Note the .directory filename should be exactly the same as the .directory name you entered in the .menu file above.




              1. Create a standard .desktop file in ~/.local/share/applications or /usr/share/applications with these contents (substituting for your own program of course and the Categories=line MUST BE the same as the name you gave the .directory file eariler)



                #!/usr/bin/env xdg-open
                [Desktop Entry]
                Version=1.0
                Type=Application
                Terminal=false
                Exec=/path/to/executable.sh
                Name=ApplicationToRun
                Icon=/path/to/icon
                Categories=APPNAME
                Comment=Comment for users







              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                No one seems to know or wasn't able to answer so i'll throw up the solution I found!



                There are 3 locations you should be concerned with:



                • /usr/share/desktop-directories

                • /etc/xdg/menus/applications-merged

                • /usr/share/applications

                Bear in mind the last location is system-wide specific, if you want it just for your user, use: ~/.local/share/applications



                Firstly we:



                1. Create a file called APPNAME.menu (substitute APPNAME for whatever you want to call it) in the folder location /etc/xdg/menus/applications-merged


                2. Input these contents:



                  <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
                  "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
                  <Menu>
                  <Name>Applications</Name> <!-- This is necessary for your directory to appear in the applications drop down -->
                  <Menu> <!--app -->
                  <Name>app</Name>
                  <Directory>APPNAME.directory</Directory>
                  <Include>
                  <Category>APPNAME</Category>
                  </Include>
                  </Menu> <!-- End app -->
                  </Menu> <!-- End Applications -->




                3. Save the file and create another file called APPNAME.directory in the folder location ( it should be the same name specified in the .menu file)
                  /usr/share/desktop-directories with these contents:



                  [Desktop Entry]
                  Type=Directory
                  Name=AppName
                  Icon=/path/to/icon



                Note the .directory filename should be exactly the same as the .directory name you entered in the .menu file above.




                1. Create a standard .desktop file in ~/.local/share/applications or /usr/share/applications with these contents (substituting for your own program of course and the Categories=line MUST BE the same as the name you gave the .directory file eariler)



                  #!/usr/bin/env xdg-open
                  [Desktop Entry]
                  Version=1.0
                  Type=Application
                  Terminal=false
                  Exec=/path/to/executable.sh
                  Name=ApplicationToRun
                  Icon=/path/to/icon
                  Categories=APPNAME
                  Comment=Comment for users







                share|improve this answer












                No one seems to know or wasn't able to answer so i'll throw up the solution I found!



                There are 3 locations you should be concerned with:



                • /usr/share/desktop-directories

                • /etc/xdg/menus/applications-merged

                • /usr/share/applications

                Bear in mind the last location is system-wide specific, if you want it just for your user, use: ~/.local/share/applications



                Firstly we:



                1. Create a file called APPNAME.menu (substitute APPNAME for whatever you want to call it) in the folder location /etc/xdg/menus/applications-merged


                2. Input these contents:



                  <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
                  "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
                  <Menu>
                  <Name>Applications</Name> <!-- This is necessary for your directory to appear in the applications drop down -->
                  <Menu> <!--app -->
                  <Name>app</Name>
                  <Directory>APPNAME.directory</Directory>
                  <Include>
                  <Category>APPNAME</Category>
                  </Include>
                  </Menu> <!-- End app -->
                  </Menu> <!-- End Applications -->




                3. Save the file and create another file called APPNAME.directory in the folder location ( it should be the same name specified in the .menu file)
                  /usr/share/desktop-directories with these contents:



                  [Desktop Entry]
                  Type=Directory
                  Name=AppName
                  Icon=/path/to/icon



                Note the .directory filename should be exactly the same as the .directory name you entered in the .menu file above.




                1. Create a standard .desktop file in ~/.local/share/applications or /usr/share/applications with these contents (substituting for your own program of course and the Categories=line MUST BE the same as the name you gave the .directory file eariler)



                  #!/usr/bin/env xdg-open
                  [Desktop Entry]
                  Version=1.0
                  Type=Application
                  Terminal=false
                  Exec=/path/to/executable.sh
                  Name=ApplicationToRun
                  Icon=/path/to/icon
                  Categories=APPNAME
                  Comment=Comment for users








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 2 at 17:25









                jamalm

                5911




                5911



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407267%2fcreating-custom-menus-in-applications-menu-tab-in-centos7-gnome%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