trying a jvm fix, turns out some ps aux uses full path, like /usr/bin/jwm

This commit is contained in:
inxi-svn 2011-10-04 03:19:08 +00:00
parent 2013a6b69a
commit 19bc994f3f

10
inxi
View file

@ -2,8 +2,8 @@
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 1.7.23 #### version: 1.7.23
#### Date: July 27 2011 #### Date: October 3 2011
#### Patch Number: 00 #### Patch Number: 01
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -3263,15 +3263,15 @@ get_desktop_environment()
elif [[ -n $( grep -is 'scrotwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then elif [[ -n $( grep -is 'scrotwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then
version=$( get_de_app_version 'scrotwm' '^welcome.*scrotwm' '4' ) version=$( get_de_app_version 'scrotwm' '^welcome.*scrotwm' '4' )
desktop_environment='Scrotwm' # no --version for this one desktop_environment='Scrotwm' # no --version for this one
elif [[ -n $( grep -is '[[:space:]]twm' <<< "$ps_aux" | grep -v 'grep' ) ]];then elif [[ -n $( grep -Eis '([[:space:]]|/)twm' <<< "$ps_aux" | grep -v 'grep' ) ]];then
desktop_environment='Twm' # no --version for this one desktop_environment='Twm' # no --version for this one
elif [[ -n $( grep -is '[[:space:]]dwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then elif [[ -n $( grep -Eis '([[:space:]]|/)dwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then
version=$( get_de_app_version 'dwm' '^dwm' '1' ) version=$( get_de_app_version 'dwm' '^dwm' '1' )
desktop_environment='dwm' desktop_environment='dwm'
elif [[ -n $( grep -is 'wmii' <<< "$ps_aux" | grep -v 'grep' ) ]];then elif [[ -n $( grep -is 'wmii' <<< "$ps_aux" | grep -v 'grep' ) ]];then
version=$( get_de_app_version 'wmii' '^wmii' '1' ) version=$( get_de_app_version 'wmii' '^wmii' '1' )
desktop_environment='wmii' desktop_environment='wmii'
elif [[ -n $( grep -is '[[:space:]]jwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then elif [[ -n $( grep -Eis '([[:space:]]|/)jwm' <<< "$ps_aux" | grep -v 'grep' ) ]];then
version=$( get_de_app_version 'jwm' '^jwm' '2' ) version=$( get_de_app_version 'jwm' '^jwm' '2' )
desktop_environment='JWM' desktop_environment='JWM'
fi fi