feature: supports lxterminal on Linux

This commit is contained in:
leo 2024-04-15 18:01:15 +08:00
parent c617331657
commit fd8f257d6d

View file

@ -96,7 +96,7 @@ namespace SourceGit.Native
{
var dir = string.IsNullOrEmpty(workdir) ? "~" : workdir;
if (_terminal == null)
App.RaiseException(dir, $"Only supports gnome-terminal/konsole/xfce4-terminal/deepin-terminal!");
App.RaiseException(dir, $"Only supports gnome-terminal/konsole/xfce4-terminal/lxterminal/deepin-terminal!");
else
_terminal.Open(dir);
}
@ -158,6 +158,12 @@ namespace SourceGit.Native
return new Terminal(test, "--working-directory=\"{0}\"");
}
test = Path.Combine(path, "lxterminal");
if (File.Exists(test))
{
return new Terminal(test, "--working-directory=\"{0}\"");
}
test = Path.Combine(path, "deepin-terminal");
if (File.Exists(test))
{