Docker: Actually run 'env' on the docker device to get the environment

Change-Id: Ice31b4f7cfd6c699a78da1518405d8d6bb6e3611
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-06-21 12:08:10 +02:00
parent 085e5ebe32
commit f558323bac

View File

@@ -958,7 +958,8 @@ void DockerDevicePrivate::fetchSystemEnviroment()
SynchronousProcess proc;
proc.setCommand({"env", {}});
proc.runBlocking();
q->runProcess(proc); // FIXME: This only starts.
proc.waitForFinished();
const QString remoteOutput = proc.stdOut();
m_cachedEnviroment = Environment(remoteOutput.split('\n', Qt::SkipEmptyParts), q->osType());