DE: Fix duplicate DE/WM
This commit is contained in:
parent
48b3b575d3
commit
d632380728
1 changed files with 5 additions and 1 deletions
6
neofetch
6
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue