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

Advanced service menus in dolphin?

Tags: None
(comma "," separated)
domruf
Registered Member
Posts
4
Karma
0

Advanced service menus in dolphin?

Wed Jun 10, 2009 4:48 pm
Hi,

I'd like to create some service menus which are only visible under certain conditions.
For example the action "do foo" should only be available if there is a file call "bar" in the current directory.
I have already found some topics about creating context menus in dolphin.
But non of them can solve my particular problem.
Is this even possible in KDE?

I don't know but maybe the X-KDE options will help with this.
Can someone point me to a detailed documentation about all the available options.
So far I have seen the options: X-KDE-Submenu, X-KDE-Priority and X-KDE-AuthorizeAction
But I don't really know what X-KDE-Priority and X-KDE-AuthorizeAction are for.

cheers
dominik
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
X-KDE-Priority helps control the order of items. X-KDE-AuthorizeAction controls access to the item and is usually used by System Administrators to restrict and lock down KDE.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
domruf
Registered Member
Posts
4
Karma
0
bcooksley thanks for your reply
can you point me to some documentation of X-KDE-AuthorizeAction maybe I can "abuse" it for my purpose!?

cheers
Dominik
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
domruf
Registered Member
Posts
4
Karma
0
thank you for the links bcooksley
they were quite interesting but didn't help me with my original problem :-(

is there really no way in KDE to create context/service menus like in windows or GNOME
I'd like to do something similar to the TortoiseHG and TortoiseSVN clients
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
domruf wrote:is there really no way in KDE to create context/service menus like in windows or GNOME
I'd like to do something similar to the TortoiseHG and TortoiseSVN clients


You could try to experiment with something like this:

ServiceTypes=KonqPopupMenu/Plugin,inode/directory

in the .desktop file.

In this example, the servicemenu in question will only show up when you right-click
on a directory. I don't know if the example you gave in the original post is doable though.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
domruf
Registered Member
Posts
4
Karma
0
OK I guess it is not possible then :-(

But I wonder if there are any plans to support this in the future.
Since the other two big desktops (MS Windows and GNOME) support this I think KDE should also support it. :-)
User avatar
JanGerrit
Moderator
Posts
647
Karma
3
OS
You could post it in the Brainstorm section.


Image


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar