Run script in terminal

19 views
Skip to first unread message

grigoresculiviu

unread,
May 25, 2018, 4:10:47 PM5/25/18
to krusader-users
If I press ENTER on a .sh file it starts the script in background (no terminal attached).

I tried Open With -> Konsole but konsole expects '-e' to run the script so that does not work.

So I thought of creating a user action. My problem is that Workdir is absolute. If I let it unset it points to /tmp. So that does not fit either. I need to run the script in current dir as it is normally the case.

I can imagine more complex solutions but I think this should be easy.

Any help is appreciated.

A. Bikadorov

unread,
May 25, 2018, 4:22:32 PM5/25/18
to krusade...@googlegroups.com

On 25.05.2018 22:10, grigoresculiviu wrote:
> I tried Open With -> Konsole but konsole expects '-e' to run the script so that does not work.

Try Open With -> Others... -> ,type "konsole -e".

Cheers
Alex

grigoresculiviu

unread,
May 27, 2018, 7:26:02 PM5/27/18
to krusader-users
Which hints there is no straightforward way of achieving what I want - double click to open terminal.
So I ended removing the executable permissions from my script. This would cause Krusader (and Dolphin) to Open instead of Execute thus remembering the 'Open with' preference.
And use 'konsole -e bash' as you suggested.
The only downside is that now I can not execute the script directly from command line. I can live with that :)
Reply all
Reply to author
Forward
0 new messages