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:
parent
3514e02d61
commit
9b708d6e5f
2
neofetch
2
neofetch
|
@ -1840,7 +1840,7 @@ get_de() {
|
||||||
Xfce*) de_ver=$(xfce4-session --version) ;;
|
Xfce*) de_ver=$(xfce4-session --version) ;;
|
||||||
GNOME*) de_ver=$(gnome-shell --version) ;;
|
GNOME*) de_ver=$(gnome-shell --version) ;;
|
||||||
Cinnamon*) de_ver=$(cinnamon --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) ;;
|
Budgie*) de_ver=$(budgie-desktop --version) ;;
|
||||||
LXQt*) de_ver=$(lxqt-session --version) ;;
|
LXQt*) de_ver=$(lxqt-session --version) ;;
|
||||||
Lumina*) de_ver=$(lumina-desktop --version 2>&1) ;;
|
Lumina*) de_ver=$(lumina-desktop --version 2>&1) ;;
|
||||||
|
|
Reference in New Issue