cat ln-to-bestof.desktop
[Desktop Entry]
Type=Service
MimeType=MimeType=image/png;image/jpeg;
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
Actions=Ln2BestOf
[Desktop Action Ln2BestOf]
Name=Hard Link To BestOf
Name[en_GB]=Hard Link To BestOf
Name[fr]=Lier en dur dans BestOf
Icon=emblem-link
Exec=/bin/ln %F ./BestOf
The file must be executable.
Hope this helps, but I’m not sure it meets your needs. May be it is possible to extend it with a script to choose a target directory, for example. How To Create Dolphin service menus
no that is just a regular context menu extension. I would use it with a broader “all files” mimetype, and to make it work it needs to show in the “drag and drop” menu
The drag n drop option is not that easy for the regular Joe to make. A service menu shouldn’t be too hard. Here’s an example with a kdialog . The likes of: ln -s %F $(kdialog --getexistingdirectory)