mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added protection against false jwm id
This commit is contained in:
parent
c8468a647e
commit
79f79aebb4
2
inxi
2
inxi
|
@ -3172,7 +3172,7 @@ get_desktop_environment()
|
||||||
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_version 'wmii' '^wmii' '1' )
|
version=$( get_de_version 'wmii' '^wmii' '1' )
|
||||||
desktop_environment='wmii'
|
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' )
|
version=$( get_de_version 'jwm' '^jwm' '2' )
|
||||||
desktop_environment='JWM'
|
desktop_environment='JWM'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue