You are not logged in.
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
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
Yes, it works. Thank You @ToZ!
Offline
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
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
[ Generated in 0.021 seconds, 8 queries executed - Memory usage: 530.07 KiB (Peak: 531.35 KiB) ]