From 49a989430faf54725a5408dd4e27d73a981103c0 Mon Sep 17 00:00:00 2001 From: Nekromateion <43814053+Nekromateion@users.noreply.github.com> Date: Mon, 7 Aug 2023 09:52:48 +0200 Subject: [PATCH] Fix auto launch after invalid shortcut (#622) --- AutoAppLaunchManager.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AutoAppLaunchManager.cs b/AutoAppLaunchManager.cs index d4f37a94..1c098143 100644 --- a/AutoAppLaunchManager.cs +++ b/AutoAppLaunchManager.cs @@ -217,8 +217,12 @@ namespace VRCX /// The path. internal void StartChildProcess(string path) { - using (var process = Process.Start(path)) - startedProcesses.Add(path, new HashSet() { process.Id }); + try + { + using (var process = Process.Start(path)) + if (process != null) + startedProcesses.Add(path, new HashSet() { process.Id }); + } catch { } } ///