From 02e5232bda7fd19000884d1462ec79b4a6e2457b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 17 May 2024 13:57:07 +0800 Subject: [PATCH] TerminalShell: ignore clifm Ref: https://github.com/leo-arch/clifm/issues/289 --- src/detection/terminalshell/terminalshell_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/terminalshell/terminalshell_linux.c b/src/detection/terminalshell/terminalshell_linux.c index 006f40a37..a535cfc42 100644 --- a/src/detection/terminalshell/terminalshell_linux.c +++ b/src/detection/terminalshell/terminalshell_linux.c @@ -244,6 +244,7 @@ static pid_t getShellInfo(FFShellResult* result, pid_t pid) ffStrEquals(name, "guake-wrapped") || ffStrEquals(name, "time") || ffStrEquals(name, "hyfetch") || //when hyfetch uses fastfetch as backend + ffStrEquals(name, "clifm") || //https://github.com/leo-arch/clifm/issues/289 ffStrContainsIgnCase(name, "debug") || ffStrContainsIgnCase(name, "not-found") || ffStrEndsWith(name, ".sh") @@ -294,6 +295,7 @@ static pid_t getTerminalInfo(FFTerminalResult* result, pid_t pid) ffStrEquals(name, "xonsh") || // works in Linux but not in macOS because kernel returns `Python` in this case ffStrEquals(name, "login") || ffStrEquals(name, "sshd") || + ffStrEquals(name, "clifm") || // https://github.com/leo-arch/clifm/issues/289 ffStrEquals(name, "chezmoi") || // #762 #ifdef __linux__ ffStrStartsWith(name, "flatpak-") || // #707