This commit is contained in:
inxi-svn 2011-05-19 06:58:31 +00:00
parent 58fccc20a1
commit 4759c85833

8
inxi
View file

@ -2602,10 +2602,11 @@ detect_desktop_environment()
fi
desktop_environment="KDE $version"
# note: fluxbox has a positive PID for blackbox, so I think most desktops can be detected
# with some work.
elif [[ -n $( type -p xprop ) ]];then
xprop_root="$( xprop -root 2>/dev/null )"
# with some work
else
ps_aux="$( ps aux )"
if [[ -n $( type -p xprop ) ]];then
xprop_root="$( xprop -root 2>/dev/null )"
if [[ -n $( grep -Eis '\"xfce4\"' <<< "$xprop_root" ) ]];then
version=$( xfdesktop --version 2>/dev/null | grep -Eosi 'xfdesktop version [0-9\.]+' | gawk '{print $3}' )
if [[ -n $version ]];then
@ -2672,6 +2673,7 @@ detect_desktop_environment()
desktop_environment='Awesome'
fi
fi
fi
echo $desktop_environment
eval $LOGFE
}