fix:The main version file of GNU/Deepin Linux has been moved from /etc/deepin-version to /etc/os-version (#1667)

Description:

Log:
This commit is contained in:
Tiny 2021-06-11 05:25:57 +00:00 committed by GitHub
parent 3514e02d61
commit 9b708d6e5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1840,7 +1840,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) ;;
Deepin*) de_ver=$(awk -F'=' '/MajorVersion/ {print $2}' /etc/os-version) ;;
Budgie*) de_ver=$(budgie-desktop --version) ;;
LXQt*) de_ver=$(lxqt-session --version) ;;
Lumina*) de_ver=$(lumina-desktop --version 2>&1) ;;