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 {