Upstream PR: https://github.com/dylanaraps/neofetch/pull/2232 Thanks to @tmiland Co-authored-by: Tommy Miland <kontakt@tmiland.com>
@@ -2192,8 +2192,8 @@ get_de() {
# TODO:
# - New config option + flag: --de_display_server on/off ?
# - Add display of X11, Arcan and anything else relevant.
- [[ $de && $WAYLAND_DISPLAY ]] &&
- de+=" (Wayland)"
+ [[ $de ]] &&
+ de+=" (${XDG_SESSION_TYPE})"
de_run=1
}