diff --git a/src/Native/MacOS.cs b/src/Native/MacOS.cs index 8c1c24c1..f68d7ac5 100644 --- a/src/Native/MacOS.cs +++ b/src/Native/MacOS.cs @@ -53,7 +53,11 @@ namespace SourceGit.Native { var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); var dir = string.IsNullOrEmpty(workdir) ? home : workdir; - var terminal = DetectTerminal(); + + var terminal = "Terminal"; + if (Directory.Exists("/Applications/iTerm.app")) + terminal = "iTerm"; + Process.Start("open", $"-a {terminal} \"{dir}\""); } @@ -61,13 +65,5 @@ namespace SourceGit.Native { Process.Start("open", $"\"{file}\""); } - - private static string DetectTerminal() - { - if (Directory.Exists("/Applications/iTerm.app")) - return "iTerm"; - - return "Terminal"; - } } }