mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Added in root test for rest of get gfx data sections to avoid debugger gfx errors
This commit is contained in:
parent
1a42ad59f0
commit
d66bf2a2c2
4
inxi
4
inxi
|
@ -1900,7 +1900,7 @@ get_graphics_card_data()
|
||||||
## create array of glx data
|
## create array of glx data
|
||||||
get_graphics_glx_data()
|
get_graphics_glx_data()
|
||||||
{
|
{
|
||||||
if [[ $B_X_RUNNING == 'true' ]];then
|
if [[ $B_X_RUNNING == 'true' && $B_ROOT != 'true' ]];then
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
# A_GLX_DATA=( $( glxinfo | gawk -F ': ' '
|
# A_GLX_DATA=( $( glxinfo | gawk -F ': ' '
|
||||||
# A_GLX_DATA=( $( cat ../../modules/data/glxinfo-atom-1r | gawk -F ': ' '
|
# A_GLX_DATA=( $( cat ../../modules/data/glxinfo-atom-1r | gawk -F ': ' '
|
||||||
|
@ -2015,7 +2015,7 @@ get_graphics_x_data()
|
||||||
{
|
{
|
||||||
local x_vendor='' x_version=''
|
local x_vendor='' x_version=''
|
||||||
|
|
||||||
if [[ $B_X_RUNNING == 'true' ]];then
|
if [[ $B_X_RUNNING == 'true' && $B_ROOT != 'true' ]];then
|
||||||
# X vendor and version detection.
|
# X vendor and version detection.
|
||||||
x_vendor=$( xdpyinfo | gawk -F': +' '
|
x_vendor=$( xdpyinfo | gawk -F': +' '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
|
Loading…
Reference in a new issue