From cef758191c4296c098bb32fe09a979a5ad1e37cc Mon Sep 17 00:00:00 2001 From: gilzoide Date: Mon, 20 Apr 2026 09:47:16 -0300 Subject: [PATCH] Fix support for subprocess arguments with whitespace --- Editor/Internal/ProcessRunner.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Editor/Internal/ProcessRunner.cs b/Editor/Internal/ProcessRunner.cs index a247d0e..407c786 100644 --- a/Editor/Internal/ProcessRunner.cs +++ b/Editor/Internal/ProcessRunner.cs @@ -18,13 +18,19 @@ public static async Task Run(string progressMessage, bool async, string fi var processInfo = new ProcessStartInfo { FileName = fileName, - Arguments = string.Join(" ", args), UseShellExecute = false, CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden, RedirectStandardOutput = true, RedirectStandardError = true, }; + foreach (string arg in args) + { + if (!string.IsNullOrWhiteSpace(arg)) + { + processInfo.ArgumentList.Add(arg); + } + } using (var process = Process.Start(processInfo)) { process.OutputDataReceived += (sender, args) =>