Commit 0b188d7c authored by Dylan Araps's avatar Dylan Araps

DE: Check that WM isn't empty

parent bfb5278e
...@@ -556,7 +556,7 @@ get_de() { ...@@ -556,7 +556,7 @@ get_de() {
# the desktop variables are sometimes also set to the # the desktop variables are sometimes also set to the
# window manager name. This checks to see if WM == DE # window manager name. This checks to see if WM == DE
# and dicards the DE value. # and dicards the DE value.
[[ "$de" =~ $wm ]] && { unset -v de; return; } [[ "$wm" && "$de" =~ $wm ]] && { unset -v de; return; }
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment