mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
fix: gnome-terminal name
This commit is contained in:
parent
3bf962d745
commit
b48c2b5ab5
1 changed files with 3 additions and 3 deletions
|
@ -42,14 +42,14 @@ namespace SourceGit.Native {
|
|||
|
||||
public void OpenTerminal(string workdir) {
|
||||
var dir = string.IsNullOrEmpty(workdir) ? "~" : workdir;
|
||||
if (File.Exists("/usr/bin/gnome-ternimal")) {
|
||||
Process.Start("/usr/bin/gnome-ternimal", $"--working-directory=\"{dir}\"");
|
||||
if (File.Exists("/usr/bin/gnome-terminal")) {
|
||||
Process.Start("/usr/bin/gnome-terminal", $"--working-directory=\"{dir}\"");
|
||||
} else if (File.Exists("/usr/bin/konsole")) {
|
||||
Process.Start("/usr/bin/konsole", $"--workdir \"{dir}\"");
|
||||
} else if (File.Exists("/usr/bin/xfce4-terminal")) {
|
||||
Process.Start("/usr/bin/xfce4-terminal", $"--working-directory=\"{dir}\"");
|
||||
} else {
|
||||
App.RaiseException("", $"Only supports gnome-ternimal/konsole/xfce4-terminal!");
|
||||
App.RaiseException("", $"Only supports gnome-terminal/konsole/xfce4-terminal!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue