You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Send the interactive hint on every transaction. The daemon treats an
absent hint as false, which strips ALLOW_USER_INTERACTION from its polkit
check — so any transaction needing authorization failed synchronously with PkError.notAuthorized and a 0 ms runtime, on any host where the polkit
action is auth_admin and the caller is not root.
Add PkClient.connect({bool interactive = true}) and the matching PkClient.interactive getter. Interactive is the default: transactions that
need authorization now prompt instead of failing. Pass interactive: false
for unattended callers that must fail fast rather than block on a prompt —
it suppresses the prompt, it does not grant authorization.
Document authorization on WSL, where polkit cannot reliably prompt because
a logind session owned by the calling user is often absent. Recommends
running as root, with a narrowly scoped polkit rule as an opt-in
alternative, plus how to tell a session problem from a real denial.
C ABI change:pk_transaction_set_hints takes a third parameter, bool interactive. Consumers linking libpackagekit_nc directly must
update their declaration; consumers using the build hook are unaffected,
as it compiles the library from source.