mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: crash when trying to open terminal from the Welcome screen
This commit is contained in:
parent
67b3952080
commit
4deac98c4e
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ namespace SourceGit.Native
|
|||
}
|
||||
|
||||
var startInfo = new ProcessStartInfo();
|
||||
startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? "~" : workdir;
|
||||
var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||
startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir;
|
||||
startInfo.FileName = OS.ShellOrTerminal;
|
||||
Process.Start(startInfo);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue