forked from qt-creator/qt-creator
Android: Avoid one use of ProcessArgs::splitArgs()
Replaced by the more harmless joinArgs in a compatibility settings code path for now. Change-Id: Id6d94faea26002f4a2641b5824d97e09a783b720 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -292,14 +292,14 @@ bool AndroidAvdManager::startAvdAsync(const QString &avdName) const
|
||||
});
|
||||
|
||||
// start the emulator
|
||||
QStringList arguments;
|
||||
CommandLine cmd(m_config.emulatorToolPath());
|
||||
if (AndroidConfigurations::force32bitEmulator())
|
||||
arguments << "-force-32bit";
|
||||
cmd.addArg("-force-32bit");
|
||||
|
||||
arguments << m_config.emulatorArgs() << "-avd" << avdName;
|
||||
qCDebug(avdManagerLog) << "Running command (startAvdAsync):"
|
||||
<< CommandLine(m_config.emulatorToolPath(), arguments).toUserOutput();
|
||||
avdProcess->setCommand({m_config.emulatorToolPath(), arguments});
|
||||
cmd.addArgs(m_config.emulatorArgs(), CommandLine::Raw);
|
||||
cmd.addArgs({"-avd", avdName});
|
||||
qCDebug(avdManagerLog) << "Running command (startAvdAsync):" << cmd.toUserOutput();
|
||||
avdProcess->setCommand(cmd);
|
||||
avdProcess->start();
|
||||
return avdProcess->waitForStarted(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user