lxTerminal Options

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

lxTerminal Options

Postby peter » Tue Mar 07, 2017 11:05 am

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: 986
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: lxTerminal Options

Postby Rex Bouwense » Wed Mar 08, 2017 12:16 am

Welcome to the LXDE forum. What are trying to do?
Rex
Lubuntu 16.04

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

Re: lxTerminal Options

Postby peter » Wed Mar 08, 2017 5:25 pm

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: 441
Joined: Mon Apr 08, 2013 6:45 am

Re: lxTerminal Options

Postby drooly » Thu Mar 09, 2017 8:48 pm

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

Postby peter » Thu Mar 09, 2017 10:41 pm

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

Postby Lew_Rockwell_fan » Tue May 23, 2017 6:20 pm

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.


Return to “LXTerminal”

Who is online

Users browsing this forum: No registered users and 1 guest