update to new process api

This commit is contained in:
2020-11-01 14:33:17 +03:00
parent 8eaf444a25
commit e81d765098
9 changed files with 22 additions and 17 deletions

View File

@ -346,7 +346,7 @@ void ExtScript::startProcess()
cmdList.append(prefix());
cmdList.append(executable());
qCInfo(LOG_LIB) << "Run cmd" << cmdList.join(' ');
m_process->start(cmdList.join(' '));
m_process->start("sh", QStringList() << "-c" << cmdList);
}

View File

@ -205,9 +205,8 @@ void ExtUpgrade::writeConfiguration() const
void ExtUpgrade::startProcess()
{
QString cmd = QString("sh -c \"%1\"").arg(executable());
qCInfo(LOG_LIB) << "Run cmd" << cmd;
m_process->start(cmd);
qCInfo(LOG_LIB) << "Run cmd" << executable();
m_process->start("sh", QStringList() << "-c" << executable());
}