KDE Dolphin integration?

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

raphael75
Posts: 2
Joined: Sat Dec 17, 2022 11:33 pm

KDE Dolphin integration?

Post by raphael75 »

I was looking at the KDE Dolphin Servicemenu documentation here:

https://develop.kde.org/docs/extend/dol ... ice-menus/

and I was trying to figure out how to add a context menu (servicemenu) option where if you right-click on a folder, under the "Actions" you could open the folder in XnView. However, I was not able to figure it out. I think it would involve sending a command to XnView on the command line, but I'm not sure what the command would be.

Has anyone already figured out how to do this?
raphael75
Posts: 2
Joined: Sat Dec 17, 2022 11:33 pm

Re: KDE Dolphin integration?

Post by raphael75 »

It looks like it was just a matter of creating a file called "open_in_xnview.desktop" in

Code: Select all

/usr/share/kio/servicemenus
with this:

Code: Select all

[Desktop Entry]
Type=Service
MimeType=inode/directory;
Actions=openInXnView

[Desktop Action openInXnView]
Name=Open In XnView
Icon=app-xnsoft-48
Exec=xnview '%u'
It works, but I haven't been able to get the Icon to appear in the context menu.