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()