de_version: Add Deepin

This commit is contained in:
Michael Straube 2019-12-08 19:19:28 +01:00
parent cfde63b5f4
commit 9303077f0e

View file

@ -1609,6 +1609,7 @@ get_de() {
"Xfce"*) de_ver=$(xfce4-session --version) ;;
"GNOME"*) de_ver=$(gnome-shell --version) ;;
"Cinnamon"*) de_ver=$(cinnamon --version) ;;
"Deepin"*) de_ver=$(awk -F'=' '/Version/ {print $2}' /etc/deepin-version) ;;
# TODO: Add other DEs
esac
de_ver=${de_ver/)*}