Browse Source

Add trailing `;` to fix path

pull/5/head
Ionite 1 year ago
parent
commit
658d362479
No known key found for this signature in database
  1. 5
      StabilityMatrix/Helper/SettingsManager.cs

5
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);
}

Loading…
Cancel
Save