This forum has been archived. All content is frozen. Please use KDE Discuss instead.

system-wide shortcut or menu entry

Tags: None
(comma "," separated)
survietamine
Registered Member
Posts
9
Karma
0
OS

system-wide shortcut or menu entry

Wed Sep 01, 2010 9:24 am
hi all,
i'm still so new with KDE because it's not my WM.

Because we are changing from Avaya telephony to Cisco IP solution, i'll have to deploy new shortcuts to provide users a way to access the program.

So, I need to add an desktop/taskbar (I dunno how you call it, the one on bottom of the screen) shortcut to all users profiles.

If it is not easy done, I can add an entry to the KDE menu too.

Could you tell me which documentation I have to read please ?
The distro is Debian, so I don't know if it's better to look at debian-menu or KDE tools to achieve this.
The new program is launched as this :
Code: Select all
java -jar cisco-applet.jar siteoption

I think I'll put (with pssh) the jar file to /opt/cisco/

Thanks for your help.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Could you please state the version of the workspace you use - KDE 3.5.x or KDE Plasma Desktop 4.x?


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
survietamine
Registered Member
Posts
9
Karma
0
OS
oh, sorry, it's KDE 4.4.3 shipped with Debian testing "Squeeze" (but not up-to-date)
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
The easiest way to accomplish this is probably:

1. Provide a .desktop file for the application, saved in /usr/share/applications. That should provide a new entry in the start-menu.
2. Let the user(s) decide if they just want it where it is stored by default in the menu (determined by the Categories= entry in the desktop-file), add it to "Favorites" or create a launcher in the panel and/or desktop.
3. Possibly create a copy of the file in the user(s) Desktop directory. If their desktop is set to use the Folder-view, it is automatically shown on their desktop.

While it is possible to automatically add it to the panel by say creating a script that modifies the plasma-config files, I wouldn't recommend it unless you _really_ know how to read those files.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
survietamine
Registered Member
Posts
9
Karma
0
OS
thanks Kryten2X4B.
I've created a .desktop within KDE (by editing the startup menu).
I think I missed one step because after I'd copied the .desktop to /usr/share/applications, this shortcut is not shown on the K Menu of another user.
I even have tried to add Categories=, but still no entry in the menu.
survietamine
Registered Member
Posts
9
Karma
0
OS
omg I'm so noob, after changing permissions to 600 like others files under this directory (/usr/share/applications), it is OK.
But the .desktop I've generated didn't include an Categories directive.
I wanted it to be in the root of the menu because it is the most important application users need.
They have to click on it at start-up session.
OK, I think I'll try to configure it to be launched at KDE start-up, but anyway, I need this menu entry too.

So with Categories= this entry is shown, but without I don't have it under the KDE menu.
Is it possible to add .desktop directly to root of this menu ?

A the root of the menu, I can see a feature "search files / directories" (sorry, it's in French, I'm not sure about my translation).
I want my entry at the same level.
So I did :
Code: Select all
/usr/share/applications# fgrep -i kfind *

and there is no result :-\
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
survietamine wrote:So with Categories= this entry is shown, but without I don't have it under the KDE menu.
Is it possible to add .desktop directly to root of this menu ?


This example should work:

Categories=Qt;KDE;Settings;X-SuSE-core;Qt;Core;Network;

It does in openSuse at least, but I'm not sure if they've patched something and it's the X-SuSE-core that does the trick. Note: the users still need to navigate to the Applications tab of the startmenu. If you want it in Favourites, you need to add it to a line in /home/username/.kde/share/config/kickoffrc file. It's quite obvious where you need to change anything to add it that way. AFAIK, there is no way of specifying Favorite in the .desktop file.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
survietamine
Registered Member
Posts
9
Karma
0
OS
great, thanks, I've got it with :
Categories=GNOME;KDE;Core;

But, is it possible to get this entry on top of Applications section ?
It appears on bottom and the user have to scroll to see it.

Also, it doesn't show up under Gnome, but it's not the purpose of this forum :)

I think that it's possible to add to favorites by configuring KIOSK, am I wrong ?
survietamine
Registered Member
Posts
9
Karma
0
OS
OK, it works just with : Core;KDE;

I don't know why both must be present.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]