mirror of
https://onedev.site.tesses.net/crosslang/crosslangdevstudio
synced 2026-02-08 09:15:45 +00:00
Add alacritty
This commit is contained in:
@@ -229,6 +229,7 @@ class CrossLangShell
|
||||
}
|
||||
if (OperatingSystem.IsLinux() || OperatingSystem.IsFreeBSD())
|
||||
{
|
||||
string alacritty = GetRealPath("alacritty");
|
||||
string konsole = GetRealPath("konsole");
|
||||
string gnome_terminal = GetRealPath("gnome-terminal");
|
||||
string mate_terminal = GetRealPath("mate-terminal");
|
||||
@@ -237,7 +238,26 @@ class CrossLangShell
|
||||
string xfce_terminal = GetRealPath("xfce4-terminal");
|
||||
|
||||
string xterm = GetRealPath("xterm");
|
||||
if (File.Exists(konsole))
|
||||
if (File.Exists(alacritty))
|
||||
{
|
||||
using Process process = new Process();
|
||||
process.StartInfo.WorkingDirectory = workingDirectory;
|
||||
process.StartInfo.FileName = alacritty;
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
if (commandName.Length != 0)
|
||||
{
|
||||
if (keepOpen)
|
||||
process.StartInfo.ArgumentList.Add("--hold");
|
||||
process.StartInfo.ArgumentList.Add("-e");
|
||||
process.StartInfo.ArgumentList.Add(commandName);
|
||||
foreach (var arg in args)
|
||||
{
|
||||
process.StartInfo.ArgumentList.Add(arg);
|
||||
}
|
||||
}
|
||||
process.Start();
|
||||
}
|
||||
else if (File.Exists(konsole))
|
||||
{
|
||||
using Process process = new Process();
|
||||
process.StartInfo.WorkingDirectory = workingDirectory;
|
||||
|
||||
Reference in New Issue
Block a user