forked from qt-creator/qt-creator
Utils: Remove some fallback code that uses a full remote env
... when an empty environment was given. At least for opening a terminal in the remote linux device setup dialog this was intentional as the passed env was meant to be the 'diff' that's then passed via the SSH commandline, which then - independently - broke due to not properly escaping of too complex values. Right now, neither way is really correct. The path forward seems to move towards 'EnvironmentChange' in general, but this will take some time. Change-Id: I86ca4da4b30b7b463583e002f2c19d6e6c5541e6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -659,22 +659,6 @@ public:
|
||||
return rootCommand;
|
||||
}
|
||||
|
||||
Environment fullEnvironment() const
|
||||
{
|
||||
Environment env = m_setup.m_environment;
|
||||
if (!env.isValid()) {
|
||||
// FIXME: Either switch to using EnvironmentChange instead of full Environments, or
|
||||
// feed the full environment into the QtcProcess instead of fixing it up here.
|
||||
// qWarning("QtcProcess::start: Empty environment set when running '%s'.",
|
||||
// qPrintable(m_setup.m_commandLine.executable().toString()));
|
||||
env = m_setup.m_commandLine.executable().deviceEnvironment();
|
||||
}
|
||||
// TODO: needs SshSettings
|
||||
// if (m_runAsRoot)
|
||||
// RunControl::provideAskPassEntry(env);
|
||||
return env;
|
||||
}
|
||||
|
||||
QtcProcess *q;
|
||||
std::unique_ptr<ProcessBlockingInterface> m_blockingInterface;
|
||||
std::unique_ptr<ProcessInterface> m_process;
|
||||
@@ -1107,7 +1091,7 @@ void QtcProcess::start()
|
||||
d->m_state = QProcess::Starting;
|
||||
d->m_process->m_setup = d->m_setup;
|
||||
d->m_process->m_setup.m_commandLine = d->fullCommandLine();
|
||||
d->m_process->m_setup.m_environment = d->fullEnvironment();
|
||||
d->m_process->m_setup.m_environment = d->m_setup.m_environment;
|
||||
d->emitGuardedSignal(&QtcProcess::starting);
|
||||
d->m_process->start();
|
||||
}
|
||||
|
Reference in New Issue
Block a user