forked from qt-creator/qt-creator
RemoteLinuxEnvironmentReader: Fix fetching remote env
This can be tested in run settings for the app on remote device after expanding environment details and pressing the "Fetch Device Environment" button. Change-Id: Ic488eaae5a40443380ddfd8b01af3e92f2557e5d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -52,10 +52,10 @@ void RemoteLinuxEnvironmentReader::start()
|
|||||||
setFinished();
|
setFinished();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_deviceProcess = m_device->createProcess(this);
|
m_deviceProcess = new QtcProcess(this);
|
||||||
connect(m_deviceProcess, &QtcProcess::done,
|
connect(m_deviceProcess, &QtcProcess::done,
|
||||||
this, &RemoteLinuxEnvironmentReader::handleDone);
|
this, &RemoteLinuxEnvironmentReader::handleDone);
|
||||||
m_deviceProcess->setCommand({"env", {}});
|
m_deviceProcess->setCommand({m_device->mapToGlobalPath("env"), {}});
|
||||||
m_deviceProcess->start();
|
m_deviceProcess->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user