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.
24 lines
674 B
Bash
Executable File
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
|