diff --git a/inxi b/inxi index ad8b029..dac5cc6 100755 --- a/inxi +++ b/inxi @@ -2844,9 +2844,15 @@ get_desktop_environment() # args: $1 - desktop command for --version; $2 - search string; $3 - gawk print number get_de_version() { - local version='' + local version='' get_version='--version' - version=$( $1 --version 2>/dev/null | gawk ' + case $1 in + dwm|wmii) + get_version='-v' + ;; + esac + + version=$( $1 $get_version 2>/dev/null | gawk ' BEGIN { IGNORECASE=1 }