fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10k stars 397 forks source link

WM not being detected #85

Closed jiampong212 closed 3 years ago

jiampong212 commented 3 years ago

fastfetch flashfetch

fastfetch and flashfetch not detecting bspwm. fastfetch have default config and i just removed lines from flashfetch.c

~ > echo $XDG_CURRENT_DESKTOP bspwm

LinusDierheimer commented 3 years ago

What does fastfetch --show-errors output? I did a clean install of bspwm on my machine, which worked perfectly. However it did set CURRENT_DESKTOP and not XDG_CURRENT_DESKTOP like on your machine. Both should work tho.

jiampong212 commented 3 years ago

Screenshot-1632152552

i tried both building manually and installing the aur package. both of them outputs this. wierd thing is that neofetch works

LinusDierheimer commented 3 years ago

Seems to be thinking that you are in a TTY session (obviously wrong). For WM / DE detection it first tests a lot of ENV variables, most notably XDG_SESSION_TYPE, XDG_CURRENT_DESKTOP, XDG_SESSION_DESKTOP, CURRENT_DESKTOP, SESSION_DESKTOP and DESKTOP_SESSION, in the given order. If the first set value equals TTY, it skips WM / DE performance and outputs something like in your screenshot. Is it possible that applies to your machine? Try env | sort | grep -i tty.

Fastfetch also thinks it is working in TTY if XDG_SESSION_TYPE is not set and the value of TERM equals linux, maybe this applies to alacritty?

jiampong212 commented 3 years ago

fixed. for some reason, XDG_SESSION_TYPE=tty was set by default. I just added export XDG_SESSION_TYPE="" to zshenv and it worked. thank you