From ddb4ecae32713ce7a24012af423d3004521e802c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 29 Apr 2022 14:28:15 +0200 Subject: [PATCH] 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 --- src/plugins/remotelinux/remotelinuxenvironmentreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/remotelinux/remotelinuxenvironmentreader.cpp b/src/plugins/remotelinux/remotelinuxenvironmentreader.cpp index a5d386cc2f9..5ccd5fcb403 100644 --- a/src/plugins/remotelinux/remotelinuxenvironmentreader.cpp +++ b/src/plugins/remotelinux/remotelinuxenvironmentreader.cpp @@ -52,10 +52,10 @@ void RemoteLinuxEnvironmentReader::start() setFinished(); return; } - m_deviceProcess = m_device->createProcess(this); + m_deviceProcess = new QtcProcess(this); connect(m_deviceProcess, &QtcProcess::done, this, &RemoteLinuxEnvironmentReader::handleDone); - m_deviceProcess->setCommand({"env", {}}); + m_deviceProcess->setCommand({m_device->mapToGlobalPath("env"), {}}); m_deviceProcess->start(); }