TerminalFont: Fix #510

2rd try
This commit is contained in:
李通洲 2023-08-05 23:08:47 +08:00
parent 16aedae843
commit 97f3860d1e

View File

@ -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__)