mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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;
|
var dir = string.IsNullOrEmpty(workdir) ? "~" : workdir;
|
||||||
if (_terminal == null)
|
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
|
else
|
||||||
_terminal.Open(dir);
|
_terminal.Open(dir);
|
||||||
}
|
}
|
||||||
|
@ -158,6 +158,12 @@ namespace SourceGit.Native
|
||||||
return new Terminal(test, "--working-directory=\"{0}\"");
|
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");
|
test = Path.Combine(path, "deepin-terminal");
|
||||||
if (File.Exists(test))
|
if (File.Exists(test))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue