Debugger: Pass system environment to sessions started on command line

Processes started with 'qtcreator -debug binary' got an empty
environment at startup, including no DISPLAY etc.

Change-Id: I0c574a3fa25faf18ddf10a6448b0b82c4f04f751
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-09-04 10:41:33 +02:00
parent 2930754acf
commit 129ea2119f

View File

@@ -1168,6 +1168,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
rp.displayName = tr("Executable file \"%1\"").arg(rp.executable);
rp.startMessage = tr("Debugging file %1.").arg(rp.executable);
}
rp.environment = Utils::Environment::systemEnvironment();
m_scheduledStarts.append(QPair<DebuggerRunParameters, Kit *>(rp, kit));
return true;
}