lxTerminal Options

LXTerminal is the standard terminal emulator of LXDE - http://wiki.lxde.org/en/LXTerminal
Locked
peter
Posts: 3
Joined: Tue Mar 07, 2017 10:57 am

lxTerminal Options

Post by peter »

Hello,

I was working for awhile with this command:

Code: Select all

lxterminal --geometry=80x25 --title=Updating -e 'bash -c "sudo something; echo Enter to Close Terminal; read line"'
but now the lxterminal just goes blank with nothing running.
What I'm I doing wrong? Thanks.
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: lxTerminal Options

Post by Rex Bouwense »

Welcome to the LXDE forum. What are trying to do?
Rex
peter
Posts: 3
Joined: Tue Mar 07, 2017 10:57 am

Re: lxTerminal Options

Post by peter »

Hello,

I'm just tying a small script where a lxterminal comes up and runs that above command and in the end the terminal stays up until the 'enter' option it's used.

vte example working:

Code: Select all

vte  --geometry=80x25 -c 'sudo bash -c "inxi -c 5 -m; echo --Enter to Close Terminal--; read line"' &
now the same with lxterminal.
Thanks.
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: lxTerminal Options

Post by drooly »

try like this:

Code: Select all

lxterminal --geometry=80x25 --title=Updating -e bash -c "sudo something; echo Enter to Close Terminal; read line"
removed single quotes.
also make sure that the other options are actual lxterminal options:

Code: Select all

man lxterminal
peter
Posts: 3
Joined: Tue Mar 07, 2017 10:57 am

Re: lxTerminal Options

Post by peter »

Hello,

Thanks @drooly.
It works now!! 8-)
Lew_Rockwell_fan
Posts: 45
Joined: Wed Aug 07, 2013 4:28 am
Location: Trantor

Re: lxTerminal Options

Post by Lew_Rockwell_fan »

I may misunderstand the intent, but think you could shorten this by using

Code: Select all

read -p "Enter to Close Terminal"
instead of the separate echo and read, assuming this is in bash or something similar. BTW, is the "--title=Updating" option working for you? Mine quit after a recent update.
Locked