mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
Always assume TTY when both $XDG_SESSION_TYPE and $WAYLAND_DISPLAY are not set
$TERM can be set to value other than `linux` ( eg xterm, xterm-256color ), just assume TTY when no desktop env is found, which effectively bypasses `getWMDE` Fix #83
This commit is contained in:
@@ -297,11 +297,8 @@ static void getSessionTypeFromEnv(FFWMDEResult* result)
|
||||
env = getenv("TERM");
|
||||
if(env != NULL && *env != '\0')
|
||||
{
|
||||
if(strcasecmp(env, "linux") == 0)
|
||||
{
|
||||
ffStrbufSetS(&result->wmProtocolName, "TTY");
|
||||
return;
|
||||
}
|
||||
ffStrbufSetS(&result->wmProtocolName, "TTY");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user