From 79f79aebb46edbd024b390f7075918c57439a1f2 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 21 Jun 2011 02:22:54 +0000 Subject: [PATCH] added protection against false jwm id --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 1ec4bfc..43c232f 100755 --- a/inxi +++ b/inxi @@ -3172,7 +3172,7 @@ get_desktop_environment() elif [[ -n $( grep -is 'wmii' <<< "$ps_aux" | grep -v 'grep' ) ]];then version=$( get_de_version 'wmii' '^wmii' '1' ) desktop_environment='wmii' - elif [[ -n $( grep -is 'jwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then + elif [[ -n $( grep -is '[[:space:]]jwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then version=$( get_de_version 'jwm' '^jwm' '2' ) desktop_environment='JWM' fi