From 3b44616aba7cfb063e3aa571b71cc98be6df7dc3 Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Wed, 28 Aug 2024 01:04:43 +0200 Subject: [PATCH] Add support for foot foot is a terminal emulator for Wayland. --- src/Native/Linux.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Native/Linux.cs b/src/Native/Linux.cs index bd973f5f..1b33cc5d 100644 --- a/src/Native/Linux.cs +++ b/src/Native/Linux.cs @@ -91,7 +91,7 @@ namespace SourceGit.Native { var dir = string.IsNullOrEmpty(workdir) ? "~" : workdir; if (_terminal == null) - App.RaiseException(dir, $"Only supports gnome-terminal/konsole/xfce4-terminal/lxterminal/deepin-terminal!"); + App.RaiseException(dir, $"Only supports gnome-terminal/konsole/xfce4-terminal/lxterminal/deepin-terminal/mate-terminal/foot!"); else _terminal.Open(dir); } @@ -159,6 +159,10 @@ namespace SourceGit.Native test = Path.Combine(path, "mate-terminal"); if (File.Exists(test)) return new Terminal(test, "--working-directory=\"{0}\""); + + test = Path.Combine(path, "foot"); + if (File.Exists(test)) + return new Terminal(test, "--working-directory=\"{0}\""); } return null;