When starting the terminal with some command from command line one can add
the -H flag to keep the terminal open. This way the window does not close
after completion of the command but it cannot be used for running commands.

/usr/bin/xfce4-terminal     -H     -x /path/to/mycommand.sh

ti 1.4.2025 klo 2.57 Eben King (e...@gmx.us) kirjoitti:

>
>
> On 3/31/25 17:36, mick.crane wrote:
> > Xfce4
> > I've loads of Perl scripts dotted about in different directories I'd
> > like to select them in Thunar and run them in a terminal with a click or
> > two.
> > "Open terminal here" in Xfce desktop is very handy but still have to
> > list the directory contents, find the one I want and type or paste it's
> > name.
> > Is there a way to get Thunar to run selected file in a terminal?
> > mick
>
>
> Right click -> "Open with" -> "Open with other application" -> Xterm
> works.  I think after the first time you do this, the terminal emulator
> you use will become default.  ICBW.  ISTM that XFCE Terminal should work
> as well, but it just gives me the "working" cursor for a few seconds.
> Be warned that while this will run in the terminal emulator, it won't
> stop at the end.  The window with vanish as soon as the program exits.
>
>

Reply via email to