From bd84f1df1e6240675b9f0308b9cd62e5f905fab9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 05:50:19 +0000 Subject: [PATCH] wolf: pre-seed Steam libraryfolders.vdf so game storage dir is set on first launch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creates steamapps/libraryfolders.vdf pointing at /mnt/games/steam during install so Steam uses the correct library path without needing the user to navigate Settings → Storage on first launch. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs --- services/wolf.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services/wolf.sh b/services/wolf.sh index 9692414..d11c4d4 100644 --- a/services/wolf.sh +++ b/services/wolf.sh @@ -694,11 +694,25 @@ UDEV log_success "Game storage: $GAME_STORAGE_DIR" # Create the storage sub-directories - mkdir -p "$GAME_STORAGE_DIR/steam" "$GAME_STORAGE_DIR/saves" \ + mkdir -p "$GAME_STORAGE_DIR/steam/steamapps" "$GAME_STORAGE_DIR/saves" \ "$GAME_STORAGE_DIR/media" "$GAME_STORAGE_DIR/lutris" \ "$GAME_STORAGE_DIR/firefox" "$GAME_STORAGE_DIR/minecraft" \ "$GAME_STORAGE_DIR/kodi" "$GAME_STORAGE_DIR/emulators" + # Pre-seed Steam library config so it uses /mnt/games/steam on first launch + # without requiring the user to navigate Settings → Storage inside Steam. + cat > "$GAME_STORAGE_DIR/steam/steamapps/libraryfolders.vdf" << 'VDFEOF' +"libraryfolders" +{ + "0" + { + "path" "/mnt/games/steam" + "label" "" + "mounted" "1" + "contentid" "1" + } +} +VDFEOF # Pre-create ES-DE ROM directories so the user knows where to drop files # and ES-DE shows the system in its list immediately on first launch. local _ESDE_SYSTEMS=(