View previous topic :: View next topic |
Author |
Message |
ankh2054 n00b

Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Sun Apr 10, 2016 1:42 pm Post subject: xfce keep terminal open |
|
|
Hi all,
Wondering if anyone knows a way of keeping a terminal window open after a command has been run.
I've tried doing the following, without success.
Code: |
xfce4-terminal -e /usr/bin/command |
thanks _________________ www.bommachine.co.uk |
|
Back to top |
|
 |
C5ace Guru

Joined: 23 Dec 2013 Posts: 370 Location: Brisbane, Australia
|
Posted: Sun Apr 10, 2016 2:45 pm Post subject: Re: xfce keep terminal open |
|
|
ankh2054 wrote: | Hi all,
Wondering if anyone knows a way of keeping a terminal window open after a command has been run.
I've tried doing the following, without success.
Code: |
xfce4-terminal -e /usr/bin/command |
thanks |
Example:
To run "top" type into Applications > Run Program > xfce4-terminal -H -e=top and hit Enter.
Or create a Desktop Launcher to run "top":
[Desktop Entry]
Version=1.0
Type=Top
Name=Command Name
Comment=
Exec=xfce4-terminal -H -e=top
Icon=weather-clear
Path=
Terminal=false
StartupNotify=true |
|
Back to top |
|
 |
ankh2054 n00b

Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Mon Apr 11, 2016 1:43 pm Post subject: |
|
|
thanks that works, although I would also like to have it default back to the terminal after running the command.
any ideas? _________________ www.bommachine.co.uk |
|
Back to top |
|
 |
C5ace Guru

Joined: 23 Dec 2013 Posts: 370 Location: Brisbane, Australia
|
Posted: Mon Apr 11, 2016 3:44 pm Post subject: |
|
|
ankh2054 wrote: | thanks that works, although I would also like to have it default back to the terminal after running the command.
any ideas? |
Don't know. I use it to run a custom written program, read the output and then manually close the terminal. |
|
Back to top |
|
 |
ankh2054 n00b

Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Mon Apr 11, 2016 3:51 pm Post subject: |
|
|
Found a way
Create a binary /usr/local/bin/kopen
Code: | #!/bin/bash
$@
/bin/bash |
make file executable and set SUID.
Then add this to your .desktop file
Code: | Exec=xfce4-terminal -x kopen script |
_________________ www.bommachine.co.uk |
|
Back to top |
|
 |
|