v0.1.1 — fix Steam bootstrap + Walker refresh

Two issues found during first-run-machine test:

- Steam was installed but never auto-launched, so the first-run client
  update never happened — Gaming Mode failed to enter Big Picture
  cleanly. Now follows omarchy-install-gaming-steam's pattern: setsid
  gtk-launch steam &, disown, runs in parallel with the rest of the
  install.

- Walker didn't pick up the deckshift-settings.desktop entry until the
  next manual elephant restart. setup_settings_tui now calls
  omarchy-restart-walker after update-desktop-database, which restarts
  elephant.service + the walker autostart unit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
28allday 2026-05-05 21:18:19 +01:00
parent ae01a2b32f
commit 43af0b3344

View file

@ -34,7 +34,7 @@ set -Euo pipefail
# -u: Treat unset variables as errors (catches typos in variable names) # -u: Treat unset variables as errors (catches typos in variable names)
# -o pipefail: A pipeline fails if ANY command in it fails, not just the last one # -o pipefail: A pipeline fails if ANY command in it fails, not just the last one
DECKSHIFT_VERSION="0.1.0" DECKSHIFT_VERSION="0.1.1"
# Resolve the directory this script lives in so we can find sibling files like # Resolve the directory this script lives in so we can find sibling files like
# bin/deckshift-settings and applications/deckshift-settings.desktop when # bin/deckshift-settings and applications/deckshift-settings.desktop when
@ -777,6 +777,16 @@ check_steam_dependencies() {
echo "================================================================" echo "================================================================"
check_steam_config check_steam_config
# Bootstrap Steam — launches it in the background so its first-run client
# update happens in parallel with the rest of the install. Same pattern as
# omarchy-install-gaming-steam. Skipped silently if Steam isn't installed
# (e.g. user declined to install missing required deps).
if check_package steam && command -v gtk-launch >/dev/null 2>&1; then
info "Launching Steam to complete its first-run download..."
setsid gtk-launch steam >/dev/null 2>&1 < /dev/null &
disown 2>/dev/null || true
fi
} }
# Checks that the user is in the right Linux groups for gaming: # Checks that the user is in the right Linux groups for gaming:
@ -1260,6 +1270,13 @@ setup_settings_tui() {
sudo update-desktop-database /usr/share/applications 2>/dev/null || true sudo update-desktop-database /usr/share/applications 2>/dev/null || true
fi fi
# Refresh Walker so the new entry shows up immediately. omarchy-restart-walker
# handles the elephant.service + walker autostart restart for us; without
# this, the entry only appears after the next Walker restart / login.
if command -v omarchy-restart-walker >/dev/null 2>&1; then
omarchy-restart-walker 2>/dev/null || true
fi
info "Settings TUI installed — launch from Walker (Super+Space → 'DeckShift Settings')" info "Settings TUI installed — launch from Walker (Super+Space → 'DeckShift Settings')"
} }