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:
Jarek Kobus
2022-04-29 14:28:15 +02:00
parent 709492ef11
commit ddb4ecae32

View File

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