From 512c3beffd873b5834437bcf4fe0c199cd923724 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 23 Dec 2016 11:41:11 +1100 Subject: [PATCH] Docs: Add better docs --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 6d89618e..4504ec9e 100755 --- a/neofetch +++ b/neofetch @@ -560,7 +560,10 @@ get_de() { de="MATE" fi - # If DE == WM unset DE. + # When a window manager is started from a display manager + # the desktop variables are sometimes also set to the + # window manager name. This checks to see if WM == DE + # and dicards the DE value. [[ "$de" =~ $wm ]] && { unset -v de; return; } ;; esac