I'm using Dolphin in a KDE Plasma 5 Desktop Environment. Here I wrote a bash script, which can elaborate exactly ONE file, when I drag a file from Dolphin and drop it on a ".desktop" defined script with an icon, which then executes e.g.
This works with such one file.
Now I would like to drag several selected files from Dolphin into the script and the script should elaborate its procedures for each file entry. This doesn't work, though I used
%F for multiple files instead of
%f for a single file.
What happens is, that several terminal windows are opened, one for each file entry. What I need is the code to be executed in ONE script, for each file entry dropped, without opening several terminal windows, but the first one. Exactly, the "loop" to start or to execute the commands with the dropped files, without any more key press.
I don't know how to handle the
%F parameter value in my script.