From 97ff75e4e2fe21a0d780776f32e06467a10124c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 26 Jun 2026 00:57:43 +0000 Subject: [PATCH] kyber-launcher: check for Steam and offer to install if missing Steam must be running when Kyber is used. The installer now detects whether Steam is present (command or ~/.steam path), and if not, prompts to install it via apt (steam-installer or steam package, with i386 multiarch enabled). Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs --- services/kyber-launcher.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/services/kyber-launcher.sh b/services/kyber-launcher.sh index b97562a..8a3ed86 100644 --- a/services/kyber-launcher.sh +++ b/services/kyber-launcher.sh @@ -43,6 +43,7 @@ install_kyber_launcher() { if [[ "$DRY_RUN" == "true" ]]; then echo "[DRY-RUN] Would check glibc version (needs 2.38+)" + echo "[DRY-RUN] Would check for Steam and offer to install if missing" echo "[DRY-RUN] Would fix unprivileged user namespaces (bwrap requirement)" echo "[DRY-RUN] Would download latest Kyber AppImage from GitHub" echo "[DRY-RUN] Would install desktop entry and 'kyber' bin symlink" @@ -50,6 +51,32 @@ install_kyber_launcher() { return 0 fi + # ── Steam check ─────────────────────────────────────────────────────────── + if ! command -v steam &>/dev/null && [[ ! -f "$ACTUAL_HOME/.steam/steam/steam.sh" ]]; then + log_warning "Steam is not installed. Kyber requires Steam to be running when you play." + local INSTALL_STEAM="" + prompt_yn "Install Steam now? (y/n):" "y" INSTALL_STEAM + if [[ "$INSTALL_STEAM" =~ ^[Yy]$ ]]; then + log_info "Installing Steam..." + # Enable multiarch (Steam is 32-bit) + dpkg --add-architecture i386 2>/dev/null || true + apt-get update -qq + apt-get install -y steam-installer \ + || apt-get install -y steam \ + || { + log_error "Steam not found in apt. Install manually from https://store.steampowered.com/about/" + log_warning "Continuing Kyber install — add Steam before playing." + } + log_success "Steam installed. Launch it once to complete setup, then sign in." + echo "" + else + log_warning "Skipping Steam install. Remember: Steam must be running when you launch Kyber." + echo "" + fi + else + log_info "Steam: found" + fi + local KYBER_REPO="simonlinuxcraft/kyber-linuxport-unofficial" local INSTALL_DIR="$ACTUAL_HOME/.local/share/kyber" local APPIMAGE_PATH="$INSTALL_DIR/KyberLinuxPort.AppImage"