mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Detect Windows Terminal better
This commit is contained in:
@@ -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) && (
|
||||
|
||||
Reference in New Issue
Block a user