From 9176797327fb7df691a66c332ef095517ccb6fad Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Sat, 18 Jun 2022 14:51:10 +0200 Subject: [PATCH] Detect Windows Terminal better --- src/detection/terminalShell.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/detection/terminalShell.c b/src/detection/terminalShell.c index 374cf260e..eaa7ae5da 100644 --- a/src/detection/terminalShell.c +++ b/src/detection/terminalShell.c @@ -120,8 +120,10 @@ static void getTerminalFromEnv(FFTerminalShellResult* result) term = getenv("SSH_TTY"); //Windows Terminal - if(!ffStrSet(term) && getenv("WT_SESSION") != NULL) - term = "Windows Terminal"; + if(!ffStrSet(term) && ( + getenv("WT_SESSION") != NULL || + getenv("WT_PROFILE_ID") != NULL + )) term = "Windows Terminal"; //Termux if(!ffStrSet(term) && (