From f2489f3b93431cb3719f56167cc55e01d9a70b68 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 24 Oct 2024 06:27:24 -0400 Subject: [PATCH] Handle spaces in paths in WasmLaunch --- BeefTools/WasmLaunch/src/Program.bf | 2 +- IDE/src/IDEApp.bf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefTools/WasmLaunch/src/Program.bf b/BeefTools/WasmLaunch/src/Program.bf index 8d302774..88d82f73 100644 --- a/BeefTools/WasmLaunch/src/Program.bf +++ b/BeefTools/WasmLaunch/src/Program.bf @@ -73,7 +73,7 @@ class Program ProcessStartInfo procInfo = scope ProcessStartInfo(); procInfo.UseShellExecute = false; procInfo.SetFileName(exePath); - procInfo.SetArguments(scope $"{Process.CurrentId} {htmlPath}"); + procInfo.SetArguments(scope $"{Process.CurrentId} \"{htmlPath}\""); procInfo.ActivateWindow = false; var process = scope SpawnedProcess(); diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index d2d614c5..e1b3215c 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -12307,7 +12307,7 @@ namespace IDE if (launchPath.EndsWith(".html")) { - arguments.Set(launchPath); + arguments.Set(scope $"\"{launchPath}\""); launchPath.Set(scope $"{gApp.mInstallDir}/WasmLaunch.exe"); }