From a8a85613fcf09c40e2564607481a23638be102af Mon Sep 17 00:00:00 2001 From: Jens Fischer Date: Fri, 20 Sep 2024 14:13:02 +0200 Subject: [PATCH] Add support for WezTerm --- src/Models/ShellOrTerminal.cs | 1 + src/Native/Linux.cs | 3 +++ src/Resources/Images/ShellIcons/wezterm.png | Bin 0 -> 3071 bytes 3 files changed, 4 insertions(+) create mode 100644 src/Resources/Images/ShellIcons/wezterm.png diff --git a/src/Models/ShellOrTerminal.cs b/src/Models/ShellOrTerminal.cs index 02b294a0..8ab25788 100644 --- a/src/Models/ShellOrTerminal.cs +++ b/src/Models/ShellOrTerminal.cs @@ -54,6 +54,7 @@ namespace SourceGit.Models new ShellOrTerminal("deepin-terminal", "Deepin Terminal", "deepin-terminal"), new ShellOrTerminal("mate-terminal", "MATE Terminal", "mate-terminal"), new ShellOrTerminal("foot", "Foot", "foot"), + new ShellOrTerminal("wezterm", "WezTerm", "wezterm"), new ShellOrTerminal("custom", "Custom", ""), }; } diff --git a/src/Native/Linux.cs b/src/Native/Linux.cs index 0bc93fef..8f84a735 100644 --- a/src/Native/Linux.cs +++ b/src/Native/Linux.cs @@ -71,6 +71,9 @@ namespace SourceGit.Native startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir; startInfo.FileName = OS.ShellOrTerminal; + if (OS.ShellOrTerminal.EndsWith("wezterm", StringComparison.OrdinalIgnoreCase)) + startInfo.Arguments = $"start --cwd \"{workdir}\""; + try { Process.Start(startInfo); diff --git a/src/Resources/Images/ShellIcons/wezterm.png b/src/Resources/Images/ShellIcons/wezterm.png new file mode 100644 index 0000000000000000000000000000000000000000..ed7a659f6656d59a4969c77b5f0e324b3ec7a85e GIT binary patch literal 3071 zcmVEX>4Tx04R}tkv&MmKpe$i(~2Kd9Lyl%kfA!+MMZS0RVYG*P%E_RU~=gfG-*gu zTpR`0f`cE6RR2@dv=!RpZ z5^*V$U6s0D(F+k_gfOcx+nkf-Bz(u$Jpz2ai}Ec0bAOJ0EoUU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