added in an xfce version fix for arch, user reports xfdesktop did not return a value, so we'll add a second test, xfce4-panel

--version and see if that works
This commit is contained in:
inxi-svn 2014-01-13 23:55:02 +00:00
parent 062f941199
commit 68ede84adc

12
inxi
View file

@ -3891,8 +3891,12 @@ get_desktop_environment()
# alternate: xfce4-about --version > xfce4-about 4.10.0 (Xfce 4.10)
if [[ -n $( grep -Eis '\"xfce4\"' <<< "$xprop_root" ) ]];then
version=$( get_de_app_version 'xfdesktop' 'xfdesktop[[:space:]]version' '5' )
# arch linux reports null, so use alternate if null
if [[ -z $version ]];then
version='4'
version=$( get_de_app_version 'xfce4-panel' '^xfce4-panel' '2' )
if [[ -z $version ]];then
version='4'
fi
fi
if [[ $B_EXTRA_DATA == 'true' ]];then
toolkit=$( get_de_app_version 'xfdesktop' 'Built[[:space:]]with[[:space:]]GTK' '4' )
@ -3904,8 +3908,12 @@ get_desktop_environment()
# when 5 is released, the string may need updating
elif [[ -n $( grep -is '\"xfce5\"' <<< "$xprop_root" ) ]];then
version=$( get_de_app_version 'xfdesktop' 'xfdesktop[[:space:]]version' '5' )
# arch linux reports null, so use alternate if null
if [[ -z $version ]];then
version='5'
version=$( get_de_app_version 'xfce5-panel' '^xfce5-panel' '2' )
if [[ -z $version ]];then
version='5'
fi
fi
if [[ $B_EXTRA_DATA == 'true' ]];then
toolkit=$( get_de_app_version 'xfdesktop' 'Built[[:space:]]with[[:space:]]GTK' '4' )