diff --git a/notifier/mainwindow.cpp b/notifier/mainwindow.cpp index b312f85..7ec3254 100644 --- a/notifier/mainwindow.cpp +++ b/notifier/mainwindow.cpp @@ -571,7 +571,6 @@ void MainWindow::startPkexec() QProcess *xbps = new QProcess(); connect(xbps, SIGNAL(finished(int)), this, SLOT(finishedPkexec(int))); QStringList sl; - sl << ctn_OCTOXBPS_SUDO_PARAMS; sl << QStringLiteral("/usr/bin/xbps-install"); sl << QStringLiteral("-Sy"); xbps->start("pkexec", sl); diff --git a/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules b/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules index 53e9e08..4e7e8d4 100644 --- a/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules +++ b/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules @@ -2,9 +2,9 @@ * without password authentication, similar to "sudo NOPASSWD:" */ polkit.addRule(function(action, subject) { - if ((action.id == "org.freedesktop.policykit.pkexec.run-xbpsinstall" && + if (action.id == "org.freedesktop.policykit.pkexec.run-xbpsinstall" && subject.isInGroup("wheel")) { return polkit.Result.YES; } -}); \ No newline at end of file +});