ProjectExplorer: Search netstat in PATH on Windows

As well as all other commands called via DesktopDeviceProcess.

Fixes: QTCREATORBUG-26485
Change-Id: Icfd3ab69de771bf58d5e9202fe1879e4063d5204
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-10-27 15:17:12 +02:00
parent 2654f74c3b
commit 6ae36127bf

View File

@@ -54,6 +54,7 @@ DesktopDeviceProcess::DesktopDeviceProcess(const QSharedPointer<const IDevice> &
void DesktopDeviceProcess::start(const Runnable &runnable)
{
QTC_ASSERT(m_process.state() == QProcess::NotRunning, return);
if (runnable.environment.size())
m_process.setEnvironment(runnable.environment);
m_process.setWorkingDirectory(runnable.workingDirectory);
m_process.setCommand(runnable.command);