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:
Orgad Shaneh
2014-05-14 16:12:54 +03:00
committed by Orgad Shaneh
parent ff1b87f0d1
commit 9ab72ac045
2 changed files with 5 additions and 2 deletions

View File

@@ -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();