From 129ea2119f1966e6df8fe08d106d9170bc2c6583 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 4 Sep 2015 10:41:33 +0200 Subject: [PATCH] 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 --- src/plugins/debugger/debuggerplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 98101c125e3..0a9dd8385a4 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -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(rp, kit)); return true; }