mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix
This commit is contained in:
parent
58fccc20a1
commit
4759c85833
8
inxi
8
inxi
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue