Creating custom menus in Applications-menu tab in CentOS7 GNOME

 Clash Royale CLAN TAG#URR8PPP
Clash 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!
centos gnome3
add a comment |Â
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!
centos gnome3
add a comment |Â
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!
centos gnome3
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!
centos gnome3
asked Nov 27 '17 at 11:20
jamalm
5911
5911
add a comment |Â
add a comment |Â
 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:
- Create a file called APPNAME.menu(substituteAPPNAMEfor whatever you want to call it) in the folder location/etc/xdg/menus/applications-merged
- 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 -->
- Save the file and create another file called - APPNAME.directoryin the folder location ( it should be the same name specified in the- .menufile)- /usr/share/desktop-directorieswith 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.
- Create a standard - .desktopfile in- ~/.local/share/applicationsor- /usr/share/applicationswith these contents (substituting for your own program of course and the- Categories=line MUST BE the same as the name you gave the- .directoryfile 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
add a comment |Â
 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:
- Create a file called APPNAME.menu(substituteAPPNAMEfor whatever you want to call it) in the folder location/etc/xdg/menus/applications-merged
- 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 -->
- Save the file and create another file called - APPNAME.directoryin the folder location ( it should be the same name specified in the- .menufile)- /usr/share/desktop-directorieswith 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.
- Create a standard - .desktopfile in- ~/.local/share/applicationsor- /usr/share/applicationswith these contents (substituting for your own program of course and the- Categories=line MUST BE the same as the name you gave the- .directoryfile 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
add a comment |Â
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:
- Create a file called APPNAME.menu(substituteAPPNAMEfor whatever you want to call it) in the folder location/etc/xdg/menus/applications-merged
- 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 -->
- Save the file and create another file called - APPNAME.directoryin the folder location ( it should be the same name specified in the- .menufile)- /usr/share/desktop-directorieswith 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.
- Create a standard - .desktopfile in- ~/.local/share/applicationsor- /usr/share/applicationswith these contents (substituting for your own program of course and the- Categories=line MUST BE the same as the name you gave the- .directoryfile 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
add a comment |Â
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:
- Create a file called APPNAME.menu(substituteAPPNAMEfor whatever you want to call it) in the folder location/etc/xdg/menus/applications-merged
- 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 -->
- Save the file and create another file called - APPNAME.directoryin the folder location ( it should be the same name specified in the- .menufile)- /usr/share/desktop-directorieswith 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.
- Create a standard - .desktopfile in- ~/.local/share/applicationsor- /usr/share/applicationswith these contents (substituting for your own program of course and the- Categories=line MUST BE the same as the name you gave the- .directoryfile 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
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:
- Create a file called APPNAME.menu(substituteAPPNAMEfor whatever you want to call it) in the folder location/etc/xdg/menus/applications-merged
- 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 -->
- Save the file and create another file called - APPNAME.directoryin the folder location ( it should be the same name specified in the- .menufile)- /usr/share/desktop-directorieswith 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.
- Create a standard - .desktopfile in- ~/.local/share/applicationsor- /usr/share/applicationswith these contents (substituting for your own program of course and the- Categories=line MUST BE the same as the name you gave the- .directoryfile 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
answered Feb 2 at 17:25
jamalm
5911
5911
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password