diff --git a/src/detection/terminalshell/terminalshell_windows.cpp b/src/detection/terminalshell/terminalshell_windows.cpp index a475643df..2bde57cbd 100644 --- a/src/detection/terminalshell/terminalshell_windows.cpp +++ b/src/detection/terminalshell/terminalshell_windows.cpp @@ -242,6 +242,9 @@ static void getTerminalFromEnv(FFTerminalShellResult* result) getenv("ALACRITTY_WINDOW_ID") != nullptr )) term = "Alacritty"; + if(!term) + term = getenv("TERM_PROGRAM"); + //Normal Terminal if(!term) term = getenv("TERM");