--===============0570703406== Content-Type: multipart/signed; boundary="nextPart1459376.hvSt5TYyxR"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1459376.hvSt5TYyxR Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 30 January 2006 15:36, Karim Ryde wrote: > Cannot get this to work with TerminalInterface: > ... > session_terminal->startProgram( "ls", "-la" ); > ... > > Maybe I'm missing something very basic here? I just fought with yakuake the other day trying to get it to not use the -l= =20 flag to /bin/sh. I think I know what may be afflicting you. The second parameter to startProgram should be a QStrList (C++ is=20 automatically casting the QString to QStrList for you). QStrList args; args.append("ls"); // Put command name first in args args.append("-la"); // Then follow with all options. // But startProgram() still needs the command name even though // it is first in args. session_terminal->startProgram("ls", args); Let me know if this works for you. Regards, - Michael Pyne --nextPart1459376.hvSt5TYyxR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBD3sJSqjQYp5Omm0oRArUgAJ4nFl2oJNxC4tQjNwwU15gHgEqudwCgm3Gq ab9uXiqBsddI+r+jdc6NKc4= =mTm0 -----END PGP SIGNATURE----- --nextPart1459376.hvSt5TYyxR-- --===============0570703406== 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 << --===============0570703406==--