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

How to make this Konqueror service menu work in Dolphin

Tags: None
(comma "," separated)
fmjrey
Registered Member
Posts
5
Karma
0
OS
Hi there,
Is there a way to make this konqueror service menu work in Dolphin:
Original .desktop
Code: Select all
[Desktop Entry]
Type=Service
Name=kdiff-ext
Comment=
Icon=de
ServiceTypes=KonqPopupMenu/Plugin,inode/directory,application/octet-stream
X-KDE-Library=kdiff_ext

I did place the file in ${SERVICES_INSTALL_DIR}/ServiceMenus.
I tried to modify the .desktop file to better suit dolphin but it still does not work:
Code: Select all
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/octet-stream;inode/directory
X-KDE-Library=kdiff_ext
Name=kdiff-ext
Comment=
Icon=de


I searched for any example of a dolphin service menu implemented in a shared library, in vain. Is that possible? Does dolphin support service menu actions implemented in a library? If so how?

For more context info, I was trying to make an arch linux package for installing kdiff-ext (http://diff-ext.sourceforge.net/) on my system.

Thanks for any help.
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
The problem here is a misunderstanding.
This is not a Konqueror Service Menu but a Konqueror Plugin.

A service menu basically is an entry or menu which performs its task by executing a command or tool.
A plugin is something that is loaded into the host application and then perform its tasks from within this host.

I am not sure if Dolphin supports Konqueror popup menu plugins, but if it does it will most likely look for them in the same place as Konqueror would which is ${SERVICES_INSTALL_DIR} itself.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
fmjrey
Registered Member
Posts
5
Karma
0
OS
Yes, you're right, the proper question is

Does dolphin support konqueror popup menu plugins?

It looks like these are the main source files to consider:
(1) http://websvn.kde.org/trunk/KDE/kdebase ... iew=markup
(2) http://websvn.kde.org/trunk/KDE/kdebase ... iew=markup
I'm no KDE or C/C++ developer, but (2) doesn't seem to use or reference (1), so the answer to my question is probably no.
Could anyone more experienced in KDE development confirm this?
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
On a quick look it doesn't seem to reference service menus either, which it definitely supports.

So it could be hidden in some of the action related classes it uses or passed in from outside (there is a reference to custom actions).

My suggestion is to contact the plugin author and ask them to contact either Dolphin's maintainer Peter Penz or the KDE file manager development list (kfm-devel@kde.org).
There could be an easy way to use the same plugin for Konqueror and Dolphin or an easy way to create two plugin libraries from the same code base.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
fmjrey wrote:Does dolphin support konqueror popup menu plugins?


I'm not sure, but if it does: not as extensively as konqueror itself. I'm using Kmess for my instant messaging needs, and that program inclucdes a konqueror plugin to easily send files to my contacts.

The plugin works fine: in Konqueror and folderviews, but NOT dolphin.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Dolphin does not support menu plugins as far as I know, but it does support service menus.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
fmjrey
Registered Member
Posts
5
Karma
0
OS
Ok I've added a new feature request for further tracking and voting:
https://bugs.kde.org/show_bug.cgi?id=250611


Bookmarks



Who is online

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