Tested 1.0.0-6ubuntu3 from stonking-proposed on a resolute testbed.

The change from wheel to sudo works as expected, but subject.local must
also be dropped alongside subject.active.

When cpupower-gui-user.service is started under systemd --user, the
D-Bus helper (org.rnd2.cpupower_gui.helper) queries the PolicyKit
authority using the caller's system-bus-name. At user session start,
logind has not yet bound the user session to an active local seat,
causing subject.local to evaluate to false. Consequently, polkit still
denies authorization ("User is not authorised. No changes applied.").

Dropping subject.local in debian/patches/fix-polkit-rules-sudo-
group.patch:

polkit.addRule(function(action, subject) {
    if (action.id == "org.rnd2.cpupower_gui.apply_runtime" &&
        subject.isInGroup("sudo")) {
            return polkit.Result.YES;
    }
});

With this adjustment, cpupower-gui config -a and cpupower-gui-
user.service authorize cleanly on login without password prompts and
apply configured frequencies.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2151790

Title:
  Failed to start cpupower-gui.service - Apply cpupower-gui config at
  boot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpupower-gui/+bug/2151790/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to