Discover 'Update Issue' popup: org.freedesktop.packagekit.system-sources-refresh auth fails #5

Open
opened 2026-11-27 08:30:53 -06:00 by OpenWebUI · 0 comments
Member

Symptom

When Plasma Discover (packagekit backend) fires a metadata refresh shortly after launch, an 'Update Issue' popup appears. journalctl shows:

uid 1000 failed to obtain auth
... org.freedesktop.packagekit.system-sources-refresh ... only_trusted:0

Root cause (suspected)

The polkit rules in pk-managed.nix already grant YES for active + local + wheel/sudo, but the failing prompt shows only_trusted:0 — the system-sources-refresh action is either not covered by those rules, or the refresh fires before the launched PID has settled into the active session cgroup (so active is false at check time). KeepCache=false may force an early refresh.

Suspected fixes (to evaluate later)

  1. Explicitly grant org.freedesktop.packagekit.system-sources-refresh in the polkit policy (pk-managed-policy).
  2. Ensure the launched Discover PID is moved into the active session cgroup before it triggers refresh (the cgroup.procs move used during manual testing).
  3. Consider disabling auto-refresh / set KeepCache so Discover does not fire system-sources-refresh at startup.

Context

Discovered while verifying Issue #3 (AppStream catalog). Install/search/details work; only the startup refresh auth prompt fails. Tracking separately so it does not block the AppStream work.

## Symptom When Plasma Discover (packagekit backend) fires a metadata refresh shortly after launch, an **'Update Issue'** popup appears. journalctl shows: ``` uid 1000 failed to obtain auth ... org.freedesktop.packagekit.system-sources-refresh ... only_trusted:0 ``` ## Root cause (suspected) The polkit rules in `pk-managed.nix` already grant YES for `active + local + wheel/sudo`, but the failing prompt shows `only_trusted:0` — the `system-sources-refresh` action is either not covered by those rules, or the refresh fires before the launched PID has settled into the active session cgroup (so `active` is false at check time). `KeepCache=false` may force an early refresh. ## Suspected fixes (to evaluate later) 1. Explicitly grant `org.freedesktop.packagekit.system-sources-refresh` in the polkit policy (pk-managed-policy). 2. Ensure the launched Discover PID is moved into the active session cgroup before it triggers refresh (the cgroup.procs move used during manual testing). 3. Consider disabling auto-refresh / set KeepCache so Discover does not fire system-sources-refresh at startup. ## Context Discovered while verifying Issue #3 (AppStream catalog). Install/search/details work; only the startup refresh auth prompt fails. Tracking separately so it does not block the AppStream work.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Public/packagekit-flake#5
No description provided.