[opensuse] adding apps to the menus
Is there any documentation of how to add an application to the menus as part of a package install? (I have figured this out by looking at the files themselves in the system but would like to know if I made any mistakes) Also I am interested to know how to create a sub menu group for all the apps for my package? (all the examples I have followed in the distribution tree don't seam to work so I am missing something key here) Regards D -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dne pátek 1. dubna 2016 16:03:35 CEST, david allan finch napsal(a):
Is there any documentation of how to add an application to the menus as part of a package install? (I have figured this out by looking at the files themselves in the system but would like to know if I made any mistakes)
Also I am interested to know how to create a sub menu group for all the apps for my package? (all the examples I have followed in the distribution tree don't seam to work so I am missing something key here)
In KDE, right-click to the application menu in the panel and select Manage applications. It has plenty of possibilities what to do. HTH -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/ https://trapa.cz/
On 01/04/2016 16:14, Vojtěch Zeisek wrote:
In KDE, right-click to the application menu in the panel and select Manage applications. It has plenty of possibilities what to do.
Thanks but I don't mean as a User, I mean as a developer as part of a package install. (I am also doing this from the gnome desktop but I would rather it works for both desktops). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri 01 Apr 2016 04:19:44 PM CDT, david allan finch wrote:
On 01/04/2016 16:14, Vojtěch Zeisek wrote:
In KDE, right-click to the application menu in the panel and select Manage applications. It has plenty of possibilities what to do.
Thanks but I don't mean as a User, I mean as a developer as part of a package install.
(I am also doing this from the gnome desktop but I would rather it works for both desktops).
Hi Add BuildRequires of hicolor-icon-theme and update-desktop-files then have a read through the following links; https://en.opensuse.org/openSUSE:Packaging_desktop_menu_categories https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25suse_up... https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html#categ... In %install you need to run; %suse_update_desktop_file %{name} You need to add a %post/%postun eg; %post %desktop_database_post %postun %desktop_database_postun Depending on the icons/theme, you may need to use %icon_theme_cache_post[un] as well, %ghost the icon-theme.cache file. -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.53-60.30-default up 20:06, 4 users, load average: 0.18, 0.07, 0.06 CPU AMD A4-5150M @ 2.70GHz | GPU Radeon HD 8350G -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/04/2016 16:38, Malcolm wrote:
Add BuildRequires of hicolor-icon-theme and update-desktop-files then have a read through the following links;
Excellent. I wish my Google foo had found this earlier. Thanks. D -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
david allan finch
-
Malcolm
-
Vojtěch Zeisek