From f5608567b23ce257d2e51dc605a992ec13c79915 Mon Sep 17 00:00:00 2001 From: ADITYA-tp01 Date: Sun, 30 Aug 2026 05:27:57 +0530 Subject: [PATCH] Resolve WSL launch path dynamically --- start.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start.ps1 b/start.ps1 index d64152b..94b01d5 100644 --- a/start.ps1 +++ b/start.ps1 @@ -79,7 +79,8 @@ if ($tfInstalled -match "yes") { # Step 7: Start TrueForge Write-Host "[7/7] Starting TrueForge in WSL..." -ForegroundColor Yellow -Start-Process powershell -ArgumentList "-NoExit", "-Command", "wsl -- bash -c 'cd `"/mnt/c/Users/adity/Documents/Mission Control/scripts/wsl`" && bash start-trueforge.sh'" +$wslPath = (wsl -e wslpath -a -u "$PSScriptRoot/scripts/wsl").Trim() +Start-Process powershell -ArgumentList "-NoExit", "-Command", "wsl -- bash -c 'cd `"$wslPath`" && bash start-trueforge.sh'" Write-Host " TrueForge starting on http://localhost:8790" -ForegroundColor Green # Done