DE: Better DE detection
This commit is contained in:
parent
f7274fef87
commit
c3596680c9
7
neofetch
7
neofetch
|
@ -537,9 +537,14 @@ get_de() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
if [[ "$XDG_CURRENT_DESKTOP" ]]; then
|
||||||
de="${XDG_CURRENT_DESKTOP/i3}"
|
de="${XDG_CURRENT_DESKTOP/i3}"
|
||||||
de="${de/'X-'}"
|
de="${de/'X-'}"
|
||||||
de="${de/Budgie:GNOME/Budgie}"
|
de="${de/Budgie:GNOME/Budgie}"
|
||||||
|
|
||||||
|
elif [[ "$DESKTOP_SESSION" ]]; then
|
||||||
|
de="${DESKTOP_SESSION/ *}"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -554,6 +559,8 @@ get_de() {
|
||||||
*"MUFFIN"* | "Cinnamon") de="$(cinnamon --version)"; de="${de:-Cinnamon}" ;;
|
*"MUFFIN"* | "Cinnamon") de="$(cinnamon --version)"; de="${de:-Cinnamon}" ;;
|
||||||
*"xfce4"*) de="XFCE4" ;;
|
*"xfce4"*) de="XFCE4" ;;
|
||||||
*"xfce5"*) de="XFCE5" ;;
|
*"xfce5"*) de="XFCE5" ;;
|
||||||
|
*"xfce"*) de="XFCE" ;;
|
||||||
|
*"mate"*) de="MATE"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Log that the function was run.
|
# Log that the function was run.
|
||||||
|
|
Reference in New Issue