Files
omarchy-pkgs/pkgbuilds/grok-bot/grok-bot.sh
T
Frank van den Brink cfa09a6719 Update grok-bot to 0.24.0
Pin the official Linux .deb to Cursor stable 0.24.0 (commit 302d75da).
Upstream renamed the binary sand -> grok-bot and ships grok-bot icons
and a grokbot:// handler; keep a Wayland wrapper and /usr/bin/sand compat
symlink.

Linux still has no update feed. Leave pinning to update-pkgver.sh rather
than a sync-upstream hook, which cannot atomically rewrite _commit.
2026-08-24 17:07:58 +02:00

24 lines
674 B
Bash
Executable File

#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
export ELECTRON_OZONE_PLATFORM_HINT="${ELECTRON_OZONE_PLATFORM_HINT:-wayland}"
export NIXOS_OZONE_WL="${NIXOS_OZONE_WL:-1}"
if [[ -f $XDG_CONFIG_HOME/grok-bot-flags.conf ]]; then
GROK_BOT_USER_FLAGS="$(sed 's/#.*//' "$XDG_CONFIG_HOME/grok-bot-flags.conf" | tr '\n' ' ')"
fi
# 0.24.0 renamed the binary sand -> grok-bot.
if [[ -x "/opt/Grok Bot/grok-bot" ]]; then
GROK_BOT_BIN="/opt/Grok Bot/grok-bot"
else
GROK_BOT_BIN="/opt/Grok Bot/sand"
fi
exec "$GROK_BOT_BIN" \
--ozone-platform=wayland \
--enable-features=UseOzonePlatform,WaylandWindowDecorations \
--enable-wayland-ime \
"$@" $GROK_BOT_USER_FLAGS