mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +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
|
fi
|
||||||
desktop_environment="KDE $version"
|
desktop_environment="KDE $version"
|
||||||
# note: fluxbox has a positive PID for blackbox, so I think most desktops can be detected
|
# note: fluxbox has a positive PID for blackbox, so I think most desktops can be detected
|
||||||
# with some work.
|
# with some work
|
||||||
elif [[ -n $( type -p xprop ) ]];then
|
else
|
||||||
xprop_root="$( xprop -root 2>/dev/null )"
|
|
||||||
ps_aux="$( ps aux )"
|
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
|
if [[ -n $( grep -Eis '\"xfce4\"' <<< "$xprop_root" ) ]];then
|
||||||
version=$( xfdesktop --version 2>/dev/null | grep -Eosi 'xfdesktop version [0-9\.]+' | gawk '{print $3}' )
|
version=$( xfdesktop --version 2>/dev/null | grep -Eosi 'xfdesktop version [0-9\.]+' | gawk '{print $3}' )
|
||||||
if [[ -n $version ]];then
|
if [[ -n $version ]];then
|
||||||
|
@ -2672,6 +2673,7 @@ detect_desktop_environment()
|
||||||
desktop_environment='Awesome'
|
desktop_environment='Awesome'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
echo $desktop_environment
|
echo $desktop_environment
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue