feature: add supports to deepin-terminal

This commit is contained in:
leo 2024-04-09 13:06:27 +08:00
parent 8f70778ec2
commit 395bd29084

View file

@ -89,9 +89,13 @@ namespace SourceGit.Native
{ {
Process.Start("/usr/bin/xfce4-terminal", $"--working-directory=\"{dir}\""); Process.Start("/usr/bin/xfce4-terminal", $"--working-directory=\"{dir}\"");
} }
else if (File.Exists("/usr/bin/deepin-terminal"))
{
Process.Start("/usr/bin/deepin-terminal", $"--work-directory=\"{dir}\"");
}
else else
{ {
App.RaiseException("", $"Only supports gnome-terminal/konsole/xfce4-terminal!"); App.RaiseException(dir, $"Only supports gnome-terminal/konsole/xfce4-terminal/deepin-terminal!");
return; return;
} }
} }