Browse Source

[PR] dylanaraps/neofetch#2232 from tmiland - Fix display of

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2232
Thanks to @tmiland

Co-authored-by: Tommy Miland <kontakt@tmiland.com>
Hykilpikonna 2 years ago
parent
commit
b4944599c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      neofetch

+ 2 - 2
neofetch

@@ -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
 }