Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfce keep terminal open
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ankh2054
n00b
n00b


Joined: 15 Mar 2016
Posts: 33
Location: London UK

PostPosted: Sun Apr 10, 2016 1:42 pm    Post subject: xfce keep terminal open Reply with quote

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
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 266
Location: Brisbane, Australia

PostPosted: Sun Apr 10, 2016 2:45 pm    Post subject: Re: xfce keep terminal open Reply with quote

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
View user's profile Send private message
ankh2054
n00b
n00b


Joined: 15 Mar 2016
Posts: 33
Location: London UK

PostPosted: Mon Apr 11, 2016 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 266
Location: Brisbane, Australia

PostPosted: Mon Apr 11, 2016 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
ankh2054
n00b
n00b


Joined: 15 Mar 2016
Posts: 33
Location: London UK

PostPosted: Mon Apr 11, 2016 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum