Does anyone have a working Dolphin service menu (Plasma 6) that will compare files with a decent free comparison tool?
The guide here to creating Dolphin service menus seems to be pretty concise: Creating Dolphin service menus | Developer
I have the KDiff3 Flatpak installed, so I tried out using the approach it gave me and created this servicemenu file:
[Desktop Entry]
Type=Service
MimeType=application/octet-stream;
Actions=compareWithKDiff3
[Desktop Action compareWithKDiff3]
Icon=vcs-diff-symbolic
Name=Compare with KDiff3
Exec=flatpak run --file-forwarding org.kde.kdiff3 @@ %U @@;
I tried it out and it works well! That guide has more details on how to truly construct a “menu” with multiple actions and all of that, but whipping up the above as quick .desktop file and putting it in ~/.local/share/kio/servicemenus/
seemed to do the trick (I had to create the kio
and servicemenus
folders).
Hope that helps as a starting point,
you probably want X-KDE-RequiredNumberOfUrls=2
in the top section so that you only see the menu option if you have two files selected.
if i’m understanding how that works.
also just installing kompare
or meld
seems to include service menus as part of the install, so i didn’t really have to do anything extra.
Good call on the other app recommendations - and I tested the X-KDE-RequiredNumberOfUrls=2
config and that works exactly as you said. Thanks!
That’s odd. I didn’t get service menus when I installed Meld.