From b48c2b5ab512ace0d5acb91162716523127ce429 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 6 Mar 2024 20:41:02 +0800 Subject: [PATCH] fix: gnome-terminal name --- src/Native/Linux.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Native/Linux.cs b/src/Native/Linux.cs index 009bed42..bf1dcca2 100644 --- a/src/Native/Linux.cs +++ b/src/Native/Linux.cs @@ -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; } }