|
|
@ -325,7 +325,6 @@ bool STTY::findExternalTTY(const TQString &termApp)
|
|
|
|
"exec<&-;exec>&-;" // close stdin and stdout
|
|
|
|
"exec<&-;exec>&-;" // close stdin and stdout
|
|
|
|
"while :;do sleep 3600;done");
|
|
|
|
"while :;do sleep 3600;done");
|
|
|
|
const char* scriptStr = script.latin1();
|
|
|
|
const char* scriptStr = script.latin1();
|
|
|
|
const char* end = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( termApp == "konsole" )
|
|
|
|
if ( termApp == "konsole" )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -333,14 +332,14 @@ bool STTY::findExternalTTY(const TQString &termApp)
|
|
|
|
"-caption", i18n("kdevelop: Debug application console").local8Bit().data(),
|
|
|
|
"-caption", i18n("kdevelop: Debug application console").local8Bit().data(),
|
|
|
|
"-e", "sh",
|
|
|
|
"-e", "sh",
|
|
|
|
"-c", scriptStr,
|
|
|
|
"-c", scriptStr,
|
|
|
|
end);
|
|
|
|
NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
::execlp( prog, prog,
|
|
|
|
::execlp( prog, prog,
|
|
|
|
"-e", "sh",
|
|
|
|
"-e", "sh",
|
|
|
|
"-c", scriptStr,
|
|
|
|
"-c", scriptStr,
|
|
|
|
end);
|
|
|
|
NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Should not get here, as above should always work
|
|
|
|
// Should not get here, as above should always work
|
|
|
|