mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-22 13:51:15 +08:00
@@ -66,13 +66,15 @@ namespace SourceGit.Native
|
||||
|
||||
public void OpenTerminal(string workdir)
|
||||
{
|
||||
var startInfo = new ProcessStartInfo();
|
||||
var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||
startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir;
|
||||
var cwd = string.IsNullOrEmpty(workdir) ? home : workdir;
|
||||
|
||||
var startInfo = new ProcessStartInfo();
|
||||
startInfo.WorkingDirectory = cwd;
|
||||
startInfo.FileName = OS.ShellOrTerminal;
|
||||
|
||||
if (OS.ShellOrTerminal.EndsWith("wezterm", StringComparison.OrdinalIgnoreCase))
|
||||
startInfo.Arguments = $"start --cwd \"{workdir}\"";
|
||||
startInfo.Arguments = $"start --cwd \"{cwd}\"";
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user