From 9434ac47d74a81429b007fb22c078fae91545d35 Mon Sep 17 00:00:00 2001 From: James Vaughan Date: Mon, 6 Jul 2026 09:52:36 -0400 Subject: [PATCH] Remove Console Popup on XTMF2.GUI Launch --- src/XTMF2.GUI/RunController.cs | 3 ++- src/XTMF2/Bus/RunContext.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/XTMF2.GUI/RunController.cs b/src/XTMF2.GUI/RunController.cs index 02e64e6..eb71744 100644 --- a/src/XTMF2.GUI/RunController.cs +++ b/src/XTMF2.GUI/RunController.cs @@ -134,7 +134,8 @@ private static bool InitializeInSeparateProcess(XTMFRuntime runtime, out RunCont { FileName = "dotnet", Arguments = $"\"{xtmfClientFileName}\" -namedPipe \"{id}\"", - CreateNoWindow = false, + UseShellExecute = false, + CreateNoWindow = OperatingSystem.IsWindows(), WorkingDirectory = Environment.CurrentDirectory }; client = new() diff --git a/src/XTMF2/Bus/RunContext.cs b/src/XTMF2/Bus/RunContext.cs index 26b600e..e1c38b4 100644 --- a/src/XTMF2/Bus/RunContext.cs +++ b/src/XTMF2/Bus/RunContext.cs @@ -151,7 +151,8 @@ public static bool CreateRunContext(XTMFRuntime runtime, string id, byte[] model { FileName = "dotnet", Arguments = $"\"{Path.Combine(path, "XTMF2.Run.dll")}\" -runID \"{ID}\" {GetExtraDlls(clientBus)}-namedPipe \"{pipeName}\"", - CreateNoWindow = false, + UseShellExecute = false, + CreateNoWindow = OperatingSystem.IsWindows(), WorkingDirectory = path }; runProcess = new Process()