From 43152b2837700c631d38bebeac624516194afa35 Mon Sep 17 00:00:00 2001 From: gk Date: Fri, 18 Sep 2020 09:04:44 +1000 Subject: [PATCH] Don't overwrite $wm with another DE variable if the first one worked --- fet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet.sh b/fet.sh index 4557af2..eaa4830 100755 --- a/fet.sh +++ b/fet.sh @@ -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