New version, tarball. Fix for root graphics/desktop data when not available as root.

Was showing in -S line N/A instead of the fallback Console: tty 1 that would match the
-G no data for root when unavailable for root.
This commit is contained in:
Harald Hope 2017-06-13 11:01:24 -07:00
parent 5e3609a279
commit d34e621857
2 changed files with 24 additions and 4 deletions

11
inxi
View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
########################################################################
#### Script Name: inxi
#### Version: 2.3.20
#### Date: 2017-06-12
#### Version: 2.3.21
#### Date: 2017-06-13
#### Patch Number: 00
########################################################################
#### SPECIAL THANKS
@ -15125,8 +15125,13 @@ print_system_data()
de_extra_data=" ${C1}info$SEP3${C2} $de_extra_data"
fi
fi
else
fi
# handle separately since some systems will have no root desktop data
if [[ $B_RUNNING_IN_DISPLAY == 'false' ]] || [[ $desktop_environment == 'N/A' && $B_ROOT == 'true' ]];then
tty_session=$( get_tty_number )
if [[ $desktop_environment == 'N/A' ]];then
de_extra_data=''
fi
if [[ -z $tty_session && $B_CONSOLE_IRC == 'true' ]];then
tty_session=$( get_tty_console_irc )
fi

View file

@ -1,3 +1,18 @@
=====================================================================================
Version: 2.3.21
Patch Version: 00
Script Date: 2017-06-13
-----------------------------------
Changes:
-----------------------------------
New version, tarball. Fix for root graphics/desktop data when not available as root.
Was showing in -S line N/A instead of the fallback Console: tty 1 that would match the
-G no data for root when unavailable for root.
-----------------------------------
-- Harald Hope - Tue, 13 Jun 2017 10:59:41 -0700
=====================================================================================
Version: 2.3.20
Patch Version: 00