Skip to content

Commit

Permalink
Merge pull request #38 from dexgs/master
Browse files Browse the repository at this point in the history
Fix notifier not showing updates
  • Loading branch information
aarnt authored Nov 11, 2023
2 parents 7945516 + 6dd5d95 commit caa2e27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion notifier/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
});

0 comments on commit caa2e27

Please sign in to comment.