From 395bd29084edc30486a9734920e6d21d015cc7e2 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 9 Apr 2024 13:06:27 +0800 Subject: [PATCH] feature: add supports to deepin-terminal --- 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 56d42306..90fdf8e4 100644 --- a/src/Native/Linux.cs +++ b/src/Native/Linux.cs @@ -89,9 +89,13 @@ namespace SourceGit.Native { Process.Start("/usr/bin/xfce4-terminal", $"--working-directory=\"{dir}\""); } + else if (File.Exists("/usr/bin/deepin-terminal")) + { + Process.Start("/usr/bin/deepin-terminal", $"--work-directory=\"{dir}\""); + } else { - App.RaiseException("", $"Only supports gnome-terminal/konsole/xfce4-terminal!"); + App.RaiseException(dir, $"Only supports gnome-terminal/konsole/xfce4-terminal/deepin-terminal!"); return; } }