From d416cef105f05f24db592311547df4617a2b4b7d Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Mon, 10 Oct 2022 14:12:47 -0700 Subject: [PATCH] Improved process starting --- .../ApplicationView/ApplicationController.cs | 11 ++++++++--- Submodules/agg-sharp | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index 787694d92..82862dae1 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -588,9 +588,14 @@ namespace MatterHackers.MatterControl { try { - Process.Start(input); - } - catch + var p = new Process(); + p.StartInfo = new ProcessStartInfo(input) + { + UseShellExecute = true + }; + p.Start(); + } + catch { // hack because of this: https://github.com/dotnet/corefx/issues/10361 if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index f1d2d2113..02de9c7a5 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit f1d2d2113baa4373ded9b08e9fde7fd5c80ea1ef +Subproject commit 02de9c7a54a825dc2dde4335869ea1c8a5e39f67