From 43af0b3344ecb327b4080375a0b0fff3d0cb49fb Mon Sep 17 00:00:00 2001 From: 28allday Date: Tue, 5 May 2026 21:18:19 +0100 Subject: [PATCH] =?UTF-8?q?v0.1.1=20=E2=80=94=20fix=20Steam=20bootstrap=20?= =?UTF-8?q?+=20Walker=20refresh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- deckshift.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/deckshift.sh b/deckshift.sh index 1834c4c..7e4cbf4 100755 --- a/deckshift.sh +++ b/deckshift.sh @@ -34,7 +34,7 @@ set -Euo pipefail # -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 -DECKSHIFT_VERSION="0.1.0" +DECKSHIFT_VERSION="0.1.1" # Resolve the directory this script lives in so we can find sibling files like # bin/deckshift-settings and applications/deckshift-settings.desktop when @@ -777,6 +777,16 @@ check_steam_dependencies() { echo "================================================================" 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: @@ -1260,6 +1270,13 @@ setup_settings_tui() { sudo update-desktop-database /usr/share/applications 2>/dev/null || true 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')" }