forked from qt-creator/qt-creator
ProcessStub: Preserve the TERM environment variable
* If Creator is not executed from terminal, this value is missing. * If it is executed from a terminal of another type than the stub it might be wrong. Change-Id: Ia6bd1dd59be04e01398ed5cdffff3080539b10ef Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ff1b87f0d1
commit
9ab72ac045
@@ -124,6 +124,7 @@ bool ConsoleProcess::start(const QString &program, const QString &args)
|
||||
return false;
|
||||
}
|
||||
|
||||
d->m_environment.unset(QLatin1String("TERM"));
|
||||
QStringList env = d->m_environment.toStringList();
|
||||
if (!env.isEmpty()) {
|
||||
d->m_tempFile = new QTemporaryFile();
|
||||
|
||||
Reference in New Issue
Block a user