refactor: fix maxOS PATH env

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-14 10:54:09 +08:00
parent c8bee2f6ba
commit c3e1fb93b6
No known key found for this signature in database
4 changed files with 14 additions and 19 deletions

View file

@ -198,10 +198,6 @@ namespace SourceGit.Commands
start.Environment.Add("LC_ALL", "C");
}
// Fix macOS `PATH` env
if (OperatingSystem.IsMacOS() && !string.IsNullOrEmpty(Native.OS.CustomPathEnv))
start.Environment.Add("PATH", Native.OS.CustomPathEnv);
// Force using this app as git editor.
switch (Editor)
{