Added in root test for rest of get gfx data sections to avoid debugger gfx errors

This commit is contained in:
inxi-svn 2009-03-17 01:56:21 +00:00
parent 1a42ad59f0
commit d66bf2a2c2

4
inxi
View file

@ -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 {