mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
icewm added
This commit is contained in:
parent
4bb100ed8e
commit
fc6cd65d66
6
inxi
6
inxi
|
@ -2631,6 +2631,12 @@ detect_desktop_environment()
|
||||||
else
|
else
|
||||||
desktop_environment="Openbox${version}"
|
desktop_environment="Openbox${version}"
|
||||||
fi
|
fi
|
||||||
|
elif [[ -n $( grep -is 'ICEWM' <<< "$xprop_root" ) ]];then
|
||||||
|
version=$( icewm --version 2>/dev/null | grep -Esi 'iceWM [[:digit:]]' | gawk '{print $2}' )
|
||||||
|
if [[ -n $version ]];then
|
||||||
|
version=" $version"
|
||||||
|
fi
|
||||||
|
desktop_environment="IceWM${version}"
|
||||||
# a few manual hacks for things that don't id with xprop, these are just good guesses
|
# a few manual hacks for things that don't id with xprop, these are just good guesses
|
||||||
elif [[ -n $( grep -is 'fvwm-crystal' <<< "$ps_aux" | grep -v 'grep' ) ]];then
|
elif [[ -n $( grep -is 'fvwm-crystal' <<< "$ps_aux" | grep -v 'grep' ) ]];then
|
||||||
version=$( fvwm --version 2>/dev/null | grep -Esi 'fvwm [[:digit:]]' | gawk '{print $2}' )
|
version=$( fvwm --version 2>/dev/null | grep -Esi 'fvwm [[:digit:]]' | gawk '{print $2}' )
|
||||||
|
|
Loading…
Reference in a new issue