de_version: Avoid awk

This commit is contained in:
Michael Straube 2019-12-09 18:17:10 +01:00
parent 8c2ab8e443
commit 9f75eaece2
1 changed files with 3 additions and 1 deletions

View File

@ -1613,9 +1613,11 @@ get_de() {
"Budgie"*) de_ver=$(budgie-desktop --version) ;;
"LXQt"*) de_ver=$(lxqt-session --version) ;;
"Lumina"*) de_ver=$(lumina-desktop --version 2>&1) ;;
"Trinity"*) de_ver=$(tde-config --version | awk '/TDE:/ {print $2}') ;;
"Trinity"*) de_ver=$(tde-config --version) ;;
# TODO: Add other DEs
esac
de_ver=${de_ver/*TDE:}
de_ver=${de_ver/tde-config*}
de_ver=${de_ver/liblxqt*}
de_ver=${de_ver/Copyright*}
de_ver=${de_ver/)*}