Skip to content

v0.4.0

Choose a tag to compare

@jwinarske jwinarske released this 03 Aug 18:15
· 17 commits to main since this release
40ff54b
  • 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.