Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-09-08 14:07:28

tortilla
Member
Registered: 2021-06-14
Posts: 32

terminal window show permanently when starting from appfinder [solved]

Hi,

when xfce4-terminal is started on the desktop, the terminal window remains shown after the commands are executed in the window. I want the terminal window to stay shown when I save this command

xfce4-terminal -- command restic -r /home/username/backupNr1 mount mountdir

or just like that

restic -r /home/username/backupNr1 mount mountdir

in a .desktop file and then start it via xfce4--appfinder. How can I achieve this?

Thank You!

Last edited by tortilla (2022-09-09 06:47:41)

Offline

#2 2022-09-08 18:24:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: terminal window show permanently when starting from appfinder [solved]

Assuming bash, try using:

xfce4-terminal -e 'bash -c "restic -r /home/username/backupNr1 mount mountdir; bash"'

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-09-09 06:43:26

tortilla
Member
Registered: 2021-06-14
Posts: 32

Re: terminal window show permanently when starting from appfinder [solved]

Yes, it works. Thank You @ToZ!

Offline

#4 2022-09-20 09:48:54

tortilla
Member
Registered: 2021-06-14
Posts: 32

Re: terminal window show permanently when starting from appfinder [solved]

It does work. But I noticed that bash appears a second time before the quotation marks - I mean this.

'bash -c " [...] mount mountdir; bash"'

a second time. Is it syntactically correct?

Offline

#5 2022-09-20 10:12:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: terminal window show permanently when starting from appfinder [solved]

The second bash command runs the shell again which keeps the window open for further processing.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB