Hello.
How to make a right-click .desktop file runs a script in the below integrated dolphin terminal?
By ‘Terminal=true’ in [Desktop Entry] I am able to run a script in an external terminal, but I’d like to run that script in the below integrated dolphin terminal without open other windows.
I cannot understand your reply.
My script is executed correctly but in system default terminal.
My wish is to execute it in the Dolphin integreted terminal, so in the Dolphin bottom without open another window to view its output.
you want to find a .desktop value that you can set for the Exec= key that will open the dolphin integrated terminal (F4) and then run a bash script in that instance for you see the results on the standard output in the same dolphin window as where you activated the .desktop via the context menu.
i don’t know how to do that, but that seems like the problem statement you are trying to convey.
Yes.
If I already have Dolphin with its terminal, opening a new terminal window is useless and annoying. It would be useful seeing the output just into it.
Hi - for what it’s worth, in my opinion the easiest (mostly) mouse-based way to do that is to just drag the script file itself - or a symlink, if desired - into the Dolphin terminal panel, and press Enter.
That doesn’t work if you specifically need to have a .desktop file for other reasons, but if the .desktop file is just to get the script to execute, then that might be a way around it.
And just to check, when you tried Méven’s advice, was that tried in the Dolphin terminal panel? That should run the script directly in the same terminal panel, unless something in that .desktop file is specifically executing another terminal instance?
i think the issue you are up against is that this .desktop would need to execute a script that did a whole number of things… it would have to:
tell if you had dolphin open or not and open one if not
tell if you already had a terminal window in dolphin open or not and open one if not
what directory it was pointed at (you will notice if you click around folders in dolphin the prompt will follow you), and then change that to the directory where the script is located
somehow execute the script from within the window by feeding it an stdin command
none of which sounds trivial to me, but then i’m not a programmer.