0.30 shipped Exec="/opt/Grok Bot/grok-bot", so the app menu skipped /usr/bin/grok-bot and never auto-updated. Always rewrite the desktop Exec to the PATH shim after unpacking the .deb so that cannot regress. Bump pkgrel to 2; clearer sudo failure hint in the launch shim.
This commit is contained in:
@@ -53,6 +53,7 @@ _maybe_update() {
|
||||
# Prefer passwordless sudo; fall back to interactive sudo. Fail soft either way.
|
||||
if ! sudo -n pacman -U --noconfirm "$pkg" 2>/dev/null; then
|
||||
if ! sudo pacman -U --noconfirm "$pkg"; then
|
||||
echo "grok-bot: need sudo to auto-update; run: sudo pacman -U <pkg> or launch /usr/bin/grok-bot from a terminal" >&2
|
||||
echo "grok-bot: pacman -U failed; launching installed version" >&2
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user