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

@ -78,13 +78,13 @@ bool AWActions::isDebugEnabled()
}
bool AWActions::runCmd(const QString &_cmd)
bool AWActions::runCmd(const QString &_cmd, const QStringList &_args)
{
qCDebug(LOG_AW) << "Cmd" << _cmd;
qCDebug(LOG_AW) << "Cmd" << _cmd << "args" << _args;
sendNotification(QString("Info"), i18n("Run %1", _cmd));
return QProcess::startDetached(_cmd);
return QProcess::startDetached(_cmd, _args);
}

View File

@ -35,7 +35,7 @@ public:
Q_INVOKABLE void checkUpdates(const bool _showAnyway = false);
Q_INVOKABLE static QString getFileContent(const QString &_path);
Q_INVOKABLE static bool isDebugEnabled();
Q_INVOKABLE static bool runCmd(const QString &_cmd);
Q_INVOKABLE static bool runCmd(const QString &_cmd, const QStringList &_args);
Q_INVOKABLE static void showLegacyInfo();
Q_INVOKABLE static void showReadme();
// configuration slots