Commit 1f91395d authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix running of update-alternatives

parent 1e93b993
......@@ -67,7 +67,7 @@ ActionReply PlymouthHelper::save(const QVariantMap &args)
QProcess checkProcess;
QByteArray data;
qDebug() << "Running update-alternatives --list default.plymouth now";
checkProcess.start(QStringLiteral("update-alternatives --list default.plymouth"), QStringList());
checkProcess.start(QStringLiteral("update-alternatives"), {QStringLiteral("--list"), QStringLiteral("default.plymouth")});
if (!checkProcess.waitForStarted()) {
reply = ActionReply::BackendError;
reply.setErrorDescription(i18n("Cannot start update-alternatives."));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment