Fix auto launch after invalid shortcut (#622)

This commit is contained in:
Nekromateion
2023-08-07 09:52:48 +02:00
committed by GitHub
parent 8e4aa39064
commit 49a989430f

View File

@@ -217,8 +217,12 @@ namespace VRCX
/// <param name="path">The path.</param>
internal void StartChildProcess(string path)
{
using (var process = Process.Start(path))
startedProcesses.Add(path, new HashSet<int>() { process.Id });
try
{
using (var process = Process.Start(path))
if (process != null)
startedProcesses.Add(path, new HashSet<int>() { process.Id });
} catch { }
}
/// <summary>