diff --git a/src/Native/Windows.cs b/src/Native/Windows.cs index 8bb4a0f0..0f2e458d 100644 --- a/src/Native/Windows.cs +++ b/src/Native/Windows.cs @@ -155,6 +155,11 @@ namespace SourceGit.Native var startInfo = new ProcessStartInfo(); startInfo.WorkingDirectory = workdir; startInfo.FileName = OS.ShellOrTerminal; + + // Directly launching `Windows Terminal` need to specify the `-d` parameter + if (OS.ShellOrTerminal.EndsWith("wt.exe", StringComparison.OrdinalIgnoreCase)) + startInfo.Arguments = $"-d \"{workdir}\""; + Process.Start(startInfo); }