Discover 'Update Issue' popup: system-sources-refresh auth fails #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
On first launch, Plasma Discover pops an 'Update Issue' dialog. The polkit action that fails is
org.freedesktop.packagekit.system-sources-refresh.Journal evidence:
Context
pk-managed.nixalready ships polkit rules granting YES forsystem-install-packages/system-remove-packages/ etc. when the caller is an active, local session inwheel/sudo.system-sources-refresh), which is NOT in the granted set. Discover fires it on startup before the launched PID has settled into the active session cgroup (see the cgroup-attribution race we hit during manual launch).KeepCache=falsein the daemon config may also force a sources refresh on every start.Suspected root causes (to investigate later)
org.freedesktop.packagekit.system-sources-refreshis not granted by our polkit rules.is_activereturns false.Candidate fixes (unvalidated)
system-sources-refreshto the granted-actions polkit rule (active+local+wheel/sudo).KeepCache=false) so Discover does not fire it at startup.is_activefor the refresh path specifically.Note
Not blocking the AppStream catalog work (Issue #3); catalog + search + install all verified working. Filed here to tackle later.