mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
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:
parent
5e3609a279
commit
d34e621857
11
inxi
11
inxi
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue