linux-pages.com
... arcane linux knowledge collected over the eons, bit by bit ...
Using Kdiff3 tool as example action to add to the SendTo menu of Thunar.
Create the following file in ~/.local/share/Thunar/sendto and name it <whatever>.desktop (I named mine ‘kdiff3.desktop’) :
# kdiff3.desktop - Integrate kdiff3 into
# the "Send To" menu.
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
TryExec=kdiff3
Exec=kdiff3 %F
Icon=kdiff3
Name=Kdiff3
# MimeType=text/plain;
The MimeType is optional so in my case (since you may compare any two files kdiff3, not just text) I commented it out.
After creating the above file (and restarting Thunar!) you will be able to select 2 or 3 files and send them to kdiff3 for comparison! To do this – right-click on the files you want to compare and navigate to to the menu shown in the picture below.
Sashe,
Тhere is another more simple way already.
You can see here:
https://docs.xfce.org/xfce/thunar/custom-actions