From d66bf2a2c20e30e6f5144f831f2948f5095c7c4f Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 17 Mar 2009 01:56:21 +0000 Subject: [PATCH] Added in root test for rest of get gfx data sections to avoid debugger gfx errors --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 13b764c..74ad405 100755 --- a/inxi +++ b/inxi @@ -1900,7 +1900,7 @@ get_graphics_card_data() ## create array of glx data get_graphics_glx_data() { - if [[ $B_X_RUNNING == 'true' ]];then + if [[ $B_X_RUNNING == 'true' && $B_ROOT != 'true' ]];then IFS=$'\n' # A_GLX_DATA=( $( glxinfo | 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='' - if [[ $B_X_RUNNING == 'true' ]];then + if [[ $B_X_RUNNING == 'true' && $B_ROOT != 'true' ]];then # X vendor and version detection. x_vendor=$( xdpyinfo | gawk -F': +' ' BEGIN {