From fc6cd65d6659cd44d07b9fce2b9f15facfc33f2c Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 19 May 2011 06:04:30 +0000 Subject: [PATCH] icewm added --- inxi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inxi b/inxi index 895f97c..531f6c8 100755 --- a/inxi +++ b/inxi @@ -2631,6 +2631,12 @@ detect_desktop_environment() else desktop_environment="Openbox${version}" 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 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}' )