DE: Fix duplicate DE/WM
This commit is contained in:
parent
48b3b575d3
commit
d632380728
6
neofetch
6
neofetch
|
@ -541,8 +541,9 @@ get_de() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
(( "$wm_run" != 1 )) && get_wm
|
||||||
|
|
||||||
if [[ "$XDG_CURRENT_DESKTOP" ]]; then
|
if [[ "$XDG_CURRENT_DESKTOP" ]]; then
|
||||||
de="${XDG_CURRENT_DESKTOP/i3}"
|
|
||||||
de="${de/'X-'}"
|
de="${de/'X-'}"
|
||||||
de="${de/Budgie:GNOME/Budgie}"
|
de="${de/Budgie:GNOME/Budgie}"
|
||||||
|
|
||||||
|
@ -555,6 +556,9 @@ get_de() {
|
||||||
elif [[ "$MATE_DESKTOP_SESSION_ID" ]]; then
|
elif [[ "$MATE_DESKTOP_SESSION_ID" ]]; then
|
||||||
de="MATE"
|
de="MATE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If DE == WM unset DE.
|
||||||
|
de="${de/${wm}}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue