From 4137d60edba95699b4d258dedcb8c142631ec8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:36:54 -0400 Subject: [PATCH] TouchProcessInfo: use shell execute like .NET Framework's default The default in .NET Framework and newer .NET (or .NET Core) changed. However, when "UseShellExecute" set to false (in newer .NET), starting the process fails immediately and stops the application --- Gu.Wpf.NumericInput/Touch/TouchProcessInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gu.Wpf.NumericInput/Touch/TouchProcessInfo.cs b/Gu.Wpf.NumericInput/Touch/TouchProcessInfo.cs index 09ea6a5..955ed99 100644 --- a/Gu.Wpf.NumericInput/Touch/TouchProcessInfo.cs +++ b/Gu.Wpf.NumericInput/Touch/TouchProcessInfo.cs @@ -8,7 +8,7 @@ internal class TouchProcessInfo { private TouchProcessInfo(string path) { - this.ProcessStartInfo = new ProcessStartInfo(path); + this.ProcessStartInfo = new ProcessStartInfo(path) { UseShellExecute = true }; this.ProcessName = Path.GetFileNameWithoutExtension(path); }