GUI launch auto-update fails without passwordless sudo #16
Reference in New Issue
Block a user
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?
Problem
Desktop/GUI launch of
grok-botdoes not auto-update when a newergrok-bot-binrelease exists, because there is no TTY for interactivesudo.Justin confirmed: terminal
bash -x $(command -v grok-bot)with a sudo password prompt did bump 0.35 → 0.39 on his PC. The GUI/menu path (Exec=grok-bot) still fails the update quietly and launches the old install.Evidence
grok-bot-launch.sh_maybe_updatedoes:sudo -n pacman -U --noconfirm "$pkg"(passwordless only)sudo pacman -U --noconfirm "$pkg"(needs a TTY)Lab CT113 with NOPASSWD:
sudo -nPASS → update works without a prompt.Desktop PC GUI: no TTY →
sudo -nfails → interactivesudocannot prompt → update skipped.Goal
When launched from the desktop (
Exec=grok-bot), offer a password prompt that works without a terminal — e.g. polkit rule, pkexec, or equivalent — sopacman -Ucan succeed the same way a terminal sudo prompt does.Scope
.desktop, polkit policy, etc. as needed)Out of scope
Acceptance
Revert
git revert. No DB.Commit style:
area: Imperative summary.