Skip to content

Commit

Permalink
Detect Windows Terminal better
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDierheimer committed Jun 18, 2022
1 parent 9d3f762 commit 9176797
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/detection/terminalShell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) && (
Expand Down

0 comments on commit 9176797

Please sign in to comment.