From 97f3860d1eb563b377db5d7c514a85faaa5adf75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 5 Aug 2023 23:08:47 +0800 Subject: [PATCH] TerminalFont: Fix #510 2rd try --- src/detection/terminalshell/terminalshell_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/terminalshell/terminalshell_linux.c b/src/detection/terminalshell/terminalshell_linux.c index 8684e0aca..fa8be7e72 100644 --- a/src/detection/terminalshell/terminalshell_linux.c +++ b/src/detection/terminalshell/terminalshell_linux.c @@ -369,8 +369,6 @@ const FFTerminalShellResult* ffDetectTerminalShell() ffStrbufInitStatic(&result.shellPrettyName, "nushell"); else if(ffStrbufIgnCaseEqualS(&result.shellProcessName, "python") && getenv("XONSH_VERSION")) ffStrbufInitStatic(&result.shellPrettyName, "xonsh"); - else if(ffStrbufEqualS(&result.shellProcessName, ".kitty-wrapped")) - ffStrbufInitStatic(&result.shellPrettyName, "kitty"); // #510 else { // https://github.com/fastfetch-cli/fastfetch/discussions/280#discussioncomment-3831734 @@ -380,6 +378,8 @@ const FFTerminalShellResult* ffDetectTerminalShell() if(ffStrbufEqualS(&result.terminalProcessName, "wezterm-gui")) ffStrbufInitStatic(&result.terminalPrettyName, "WezTerm"); + else if(ffStrbufEqualS(&result.terminalProcessName, ".kitty-wrapped")) + ffStrbufInitStatic(&result.terminalPrettyName, "kitty"); // #510 #if defined(__linux__) || defined(__FreeBSD__)