Don't overwrite $wm with another DE variable if the first one worked

This commit is contained in:
gk committed 2020-09-18 09:04:44 +10:00
1 parent 0d8ab196c4
commit 43152b2837
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ eq() { # equals | [ a = b ] with globbing
## DE
wm="$XDG_CURRENT_DESKTOP"
wm="$DESKTOP_SESSION"
[ "$wm" ] || wm="$DESKTOP_SESSION"
## Distro
# freedesktop.org/software/systemd/man/os-release.html