How to add a menu item visible for ALL users?

Waldo Bastian bastian at kde.org
Fri Nov 28 21:32:40 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri November 28 2003 18:06, Mark Hellman wrote:
> I would like to install an application and add a shortcut to it on the KDE
> menu for *all users* to see. In our case, we have hundreds of users, so
> this cannot be done individually.

http://www.kde.org/areas/sysadmin/ will give you a nice introduction in how 
KDE organizes it files.

The menu is constructed from the directory structure that can be found under 
/etc/opt/kde3/share/applnk/ If you copy a .desktop file there it will be 
picked up for all users on that machine. Alternatively you can also use 
/opt/kde3/share/applnk/ You may need to make sub-directories first.

For example, to add a menu-entry to the "Multimedia" menu you could copy a .
desktop file to either /etc/opt/kde3/share/applnk/Multimedia/ or to 
/opt/kde3/share/applnk/Multimedia/

There is also a new way, new in SuSE 9.0 and soon in KDE 3.2. For that way you 
can copy the .desktop file to /usr/share/applications and add a 
Categories=xxx line to the .desktop file. The category then determines in 
which menu the file shows up. You will have a 
/opt/kde3/share/applnk/default_applications.menu file that determines
which categories are shown in which menus.

See http://pdx.freedesktop.org/Standards/menu-spec/menu-spec-0.7.html for the 
complete story.

> And what about adding a shortcut to the Panel Menu for all users? How can
> this be done?

What exactly do you mean with "Panel Menu" ?

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/x774N4pvrENfboIRAg5IAKCbwYLvhwFR7Ah/8w56jy9m6e6E/gCeP9HE
NY+U73jAFFanJ9d1xRrQVOk=
=ghWd
-----END PGP SIGNATURE-----
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list