diff --git a/StabilityMatrix/Helper/SettingsManager.cs b/StabilityMatrix/Helper/SettingsManager.cs index 918b7c6e..dbb57d23 100644 --- a/StabilityMatrix/Helper/SettingsManager.cs +++ b/StabilityMatrix/Helper/SettingsManager.cs @@ -86,7 +86,10 @@ public class SettingsManager : ISettingsManager if (Settings.PathExtensions == null) return; var toInsert = GetPathExtensionsAsString(); // Append the original path, if any - toInsert += originalEnvPath ?? ""; + if (originalEnvPath != null) + { + toInsert += $";{originalEnvPath}"; + } Environment.SetEnvironmentVariable("PATH", toInsert, EnvironmentVariableTarget.Process); }