mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
feature: supports lxterminal on Linux
This commit is contained in:
parent
c617331657
commit
fd8f257d6d
1 changed files with 7 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue