[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How to spawn a konsole from another app?
From:       Robin Atwood <robin.atwood () attglobal ! net>
Date:       2008-03-07 13:14:45
Message-ID: 200803072014.46019.robin.atwood () attglobal ! net
[Download RAW message or body]

On Friday 07 Mar 2008, Andreas Pakulat wrote:
> On 07.03.08 17:53:29, Robin Atwood wrote:
> > I want to execute a bash script and display the results to the user.
> > Since the output is very heavily formated, executing the script
> > in "konsole --noclose ..." seems the most tidy solution. I currently just
> > use the system() function to do this and it works but the main
> > application freezes until the user closes the konsole. I think there must
> > be a better KDE way of doing this and I have found KProcess but that
> > causes Konsole problems; it does not provide the right environment. The
> > error messages:
> >
> > 	konsole: WARNING: Unable to open a pseudo teletype!
> > 	Uh oh.. can't get terminal attributes..
>
> Sounds as if your hosting application doesn't run in an X11 environment
> or some such. KDevelop3 also executes the application inside an external
> konsole using KProcess (without blocking the Ui) if the user wants that.
>
> Its using KProcess::start( KProcess::OwnGroup, KProcess::AllOutput ) to
> do that.
>
> Andreas

Thanks Andreas. It is the KProcess::DontCare which causes the PTTY problem. 
However, if I use your settings nothing appears at all! I am experimenting 
with the different combinations.

-Robin
-- 
------------------------------------------------------
Robin Atwood, Bangkok, Thailand.
tel/fax: +66 2252 1438      
mobile: +66 851 322487
MSN:    robin@binro.org
Skype:  abend922
Yahoo:	abend922
------------------------------------------------------











 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic