ProjectExplorer: Normalize DeviceProcess::start() signature

Change-Id: I2915be34d4a1eed64567874dcf0263b7583cc142
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-02-11 17:38:16 +01:00
parent 380d952221
commit 95c9579c58
24 changed files with 107 additions and 109 deletions

View File

@@ -329,18 +329,16 @@ LinuxDevice::LinuxDevice()
Core::MessageManager::writeDisrupting(tr("Error starting remote shell."));
proc->deleteLater();
});
Runnable runnable;
runnable.device = sharedFromThis();
runnable.environment = env;
runnable.workingDirectory = workingDir;
// It seems we cannot pass an environment to OpenSSH dynamically
// without specifying an executable.
if (env.size() > 0)
runnable.command.setExecutable("/bin/sh");
proc->setCommand({"/bin/sh", {}});
proc->setTerminalMode(QtcProcess::TerminalOn);
proc->start(runnable);
proc->setEnvironment(env);
proc->setWorkingDirectory(workingDir);
proc->start();
});
if (Utils::HostOsInfo::isAnyUnixHost()) {