From kde-devel Fri Mar 07 11:44:47 2008 From: Kevin Krammer Date: Fri, 07 Mar 2008 11:44:47 +0000 To: kde-devel Subject: Re: How to spawn a konsole from another app? Message-Id: <200803071244.52438.kevin.krammer () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-devel&m=120489035810135 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1832597703==" --===============1832597703== Content-Type: multipart/signed; boundary="nextPart10130295.Xn6Ukt3xos"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart10130295.Xn6Ukt3xos Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 07 March 2008, 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.. > > are produced. I only need a 'DontCare" mode of running. What is the best > way to do this? You could try to embed a KonsolePart KDE 3.5, right? http://api.kde.org/3.5-api/kdelibs-apidocs/interfaces/html/classTerminalInt= erface.html Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart10130295.Xn6Ukt3xos Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBH0Sq0nKMhG6pzZJIRAkJlAJ4kidu3JdM9+NR++ClTIFtg/BPY2ACbBptN cpLbma5tZYRoF6yv5+Rfli4= =KoAo -----END PGP SIGNATURE----- --nextPart10130295.Xn6Ukt3xos-- --===============1832597703== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1832597703==--