![]() Registered Member ![]()
|
I want to create a dynamic service menus for dolphin. However, the standard .desktop files only allow static services menus (as far as I know).
I want to create a menu "Send to ..." Which should allow the user to send a file from dolphin (or konqueror) via Kopete to a contact. (This part is not the problem. Can be done with the dbus.) But I need to create a dynamic submenu with all contacts currently online.
Murphy's Law is recursive. Washing your car to make it rain doesn't work.
|
![]() Registered Member ![]()
|
I do not think that is currently possible, but you could take a two-step approach, and use a menu dialogue to let the user select the recipient.
The following code prototypes such an approach:
|
![]() Registered Member ![]()
|
Further to my previous from the other day, looks like you should be able to do what you're after by implementing a KFileItemAction plugin.
I haven't tested it yet, but it does look interesting. You will need >=4.6.1 for this to be available. |
![]() Registered Member ![]()
|
Do you have an example?
I don't find any implementation of "KFileItemAction" in google... |
![]() Registered Member ![]()
|
Thx, the script works.
I will look at the KFileItemAction as soon as I upgraded to 4.6.1
Murphy's Law is recursive. Washing your car to make it rain doesn't work.
|
![]() Registered Member ![]()
|
Hi there.
Glad to know that works--I'll have a go at KFileItemAction myself when I upgrade to openSUSE 11.4 next month or so. Caritas, KFileItemAction is very new, that is probably why you cannot find any real world examples yet--try looking for its Konqueror predecessor (forget the class name right now), you might have better luck with that. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft