Skip to content

Commit 9479235

Browse files
committed
TerminalShell: fix mintty detection (Windows)
1 parent 051f664 commit 9479235

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/detection/terminalshell/terminalshell_windows.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ static void getTerminalFromEnv(FFTerminalShellResult* result)
242242
getenv("ALACRITTY_WINDOW_ID") != nullptr
243243
)) term = "Alacritty";
244244

245+
if(!term)
246+
term = getenv("TERM_PROGRAM");
247+
245248
//Normal Terminal
246249
if(!term)
247250
term = getenv("TERM");

0 commit comments

Comments
 (0)