From d6323807281544d09900bfb2dab7ebb4d5c3dd6c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 23 Dec 2016 00:25:23 +1100 Subject: [PATCH] DE: Fix duplicate DE/WM --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index e7ce69e5..ca47723a 100755 --- a/neofetch +++ b/neofetch @@ -541,8 +541,9 @@ get_de() { ;; *) + (( "$wm_run" != 1 )) && get_wm + if [[ "$XDG_CURRENT_DESKTOP" ]]; then - de="${XDG_CURRENT_DESKTOP/i3}" de="${de/'X-'}" de="${de/Budgie:GNOME/Budgie}" @@ -555,6 +556,9 @@ get_de() { elif [[ "$MATE_DESKTOP_SESSION_ID" ]]; then de="MATE" fi + + # If DE == WM unset DE. + de="${de/${wm}}" ;; esac