DE: Fix duplicate DE/WM

This commit is contained in:
Dylan Araps 2016-12-23 00:25:23 +11:00
parent 48b3b575d3
commit d632380728

View file

@ -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