DE: Check that WM isn't empty
This commit is contained in:
parent
bfb5278efb
commit
0b188d7c55
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -556,7 +556,7 @@ get_de() {
|
|||
# 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; }
|
||||
[[ "$wm" && "$de" =~ $wm ]] && { unset -v de; return; }
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue