Skip to content

Commit

Permalink
fix systemctl location (#359)
Browse files Browse the repository at this point in the history
Co-authored-by: nephros <nemo@pgxperiiia10>
  • Loading branch information
nephros and nephros authored Jan 16, 2023
1 parent 13c5134 commit 250c971
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/patchmanager-daemon/patchmanagerobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static const QString PM_UNAPPLY = QStringLiteral("/usr/libexec/pm_unapply");
static const QString BIN_UNZIP = QStringLiteral("/usr/bin/unzip");
static const QString BIN_TAR = QStringLiteral("/bin/tar");
static const QString BIN_PKCON = QStringLiteral("/usr/bin/pkcon");
static const QString BIN_SYSTEMCTL_U = QStringLiteral("/bin/systemctl-user");
static const QString BIN_SYSTEMCTL_U = QStringLiteral("/usr/bin/systemctl-user");
static const QString BIN_RPM = QStringLiteral("/bin/rpm");

static const QString BROWSER_CODE = QStringLiteral("browser");
Expand Down Expand Up @@ -824,7 +824,6 @@ void PatchManagerObject::restartService(const QString &serviceName)
qWarning() << Q_FUNC_INFO << "Error sending message";
qDebug() << Q_FUNC_INFO << "Invoking systemctl:" <<
QProcess::execute(BIN_SYSTEMCTL_U, { QStringLiteral("--no-block"), QStringLiteral("restart"), serviceName });
QProcess::execute(QStringLiteral("/bin/systemctl-user"), { QStringLiteral("--no-block"), QStringLiteral("restart"), serviceName });
}
}

Expand Down

0 comments on commit 250c971

Please sign in to comment.