[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: adding menu items during installation
From:       swmcquig () ncsu ! edu
Date:       2004-06-03 12:04:07
Message-ID: 3033.24.74.181.26.1086264247.squirrel () webmail ! ncsu ! edu
[Download RAW message or body]


Thank you so much for your help Waldo!!!  I very much appreciate your
detailed response, I am sure it will lead me to finally being able to wrap
everything up.

Thanks so much.
Thanks-a-million,
Scott

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu June 3 2004 04:44, swmcquig@ncsu.edu wrote:
>> Hello -
>>
>> I have been searching for answers on how to add a menu item with submenu
>> items
>> attached during application installation.  I have read about the menu
>> editor and I am hoping someone would be kind enough to provide me with
>> more information on .desktop and/or .directory file writing as this may
>> or
>> may not be a solution.  I have taken a look at a few items on the net
>> and
>> have viewed some of the .desktop and .directory files.  Some of what I
>> have read has referred to XML files????  Please help.
>>
>> Summing my problem, I would like my installer to load the application,
>> place an icon on the desktop, and add menu items to the menu.
>
> To install an application + submenu in the KDE menu see:
> http://pdx.freedesktop.org/Standards/menu-spec/menu-spec-0.7.html
>
> For a submenu you will need to create a XML file describing the contents
> of
> the menu and install it in /etc/xdg/menus/application-merged/
>
> You should install a .directory file for the menu in
> $(prefix)/share/desktop-directories/ The directory file specifies which
> icon
> to use and contains translations for the menu-title.
>
> For each individual menu-entry (that is part of the sub-menu) you must
> install
> a .desktop file in $(prefix)/share/applications/
>
> $(prefix) is typically /usr, /usr/local or $KDEDIR
>
> Make sure you prefix all files with a vendor-id, e.g. "novell-" or
> "novell/".
> If you write a non-commercial KDE application you can use "kde-" or
> "kde/".
>
> To install an icon on the desktop copy a .desktop file to:
> 	$(kde-config --userpath desktop)
>
> ==========================================================Menu Example
> =========================================================The company
> ShinyThings Inc. creates an application WebMirror 1.0 and wants to
> install WebMirror and WebMirror Admin Tool in the KDE menu in a submenu of
> its own. It will use "shinythings" as vendor id.
>
> First of all we need two .desktop files:
>
> $(prefix)/share/applications/shinythings-webmirror.desktop:
>
> [Desktop Entry]
> Encoding=UTF-8
> Type=Application
>
> Exec=webmirror
> Icon=webmirror
>
> Name=WebMirror
> Name[nl]=WebSpiegel
>
>
> $(prefix)/share/applications/shinythings-webmirror-admin.desktop:
>
> [Desktop Entry]
> Encoding=UTF-8
> Type=Application
>
> Exec=webmirror-admintool
> Icon=webmirror-admintool
>
> Name=WebMirror Admin Tool
> Name[nl]=WebSpiegel Administratie Tool
>
>
> We also need a .directory file for the submenu:
> $(prefix)/share/desktop-directories/shinythings-webmirror.directory:
>
> [Desktop Entry]
> Encoding=UTF-8
>
> Icon=webmirror
>
> Name=WebMirror
> Name[nl]=WebSpiegel
>
>
> And finally, a .menu file that brings it all togther:
> /etc/xdg/menus/application-merged/shinythings-webmirror.menu:
>
> <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN"
>           "http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd">
> <Menu>
>   <Menu>
>     <Name>WebMirror</Name>
>     <Directory>shinythings-webmirror.directory</Directory>
>     <Include>
>       <Filename>shinythings-webmirror.desktop</Filename>
>       <Filename>shinythings-webmirror-admin.desktop</Filename>
>     </Include>
>   </Menu>
> </Menu>
>
>
> Cheers,
> Waldo
> - --
> bastian@kde.org  |   Novell BrainShare Europe 2004   |  bastian@suse.com
> bastian@kde.org  | 12-18 September, Barcelona, Spain |  bastian@suse.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
>
> iD8DBQFAvwszN4pvrENfboIRAlj6AJ42dSn7kyjljZafyGqMD3jR/MTXUACfbYIM
> 9mKdUSti/9wRy0Unw9Mc8T8=Cl5B
> -----END PGP SIGNATURE-----
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>>> unsubscribe <<
>

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic