scripts: Prompt polkit for GUI grok-bot auto-update #17
Reference in New Issue
Block a user
Delete Branch "ui/gui-update-pkexec"
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?
What
Desktop auto-update now uses a graphical polkit prompt when
Exec=grok-bothas no TTY.Privilege order in
grok-bot-launch.sh:sudo -n(lab NOPASSWD / cached credentials only — not shipped as default)pkexecof/usr/lib/grok-bot-bin/pkexec-pacman-uwhen stdin is not a TTY andDISPLAYorWAYLAND_DISPLAYis setsudowhen stdin is a TTYThe helper only
pacman -Us a localgrok-bot-binpackage (filename +pacman -Qpname). Polkit actioncom.s1d3sw1ped.grok-bot-bin.updateisauth_admin(notyes/ NOPASSWD). Cancel or deny still launches the installed binary.polkitis an optdepend; README notes the CachyOS desktop agent requirement.pkgrel 2 so the shim/helper/policy can ship without waiting on an upstream Grok Bot version bump. No Gitea release CI changes.
Why
GUI/menu launch skipped auto-update because interactive sudo needs a TTY. Terminal sudo already worked (0.35 → 0.39). Lab CT113 NOPASSWD already worked via
sudo -n.Test
grok-bot: interactive sudo password prompt still worksCloses: #16