mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
had to remove -B option from glxinfo, already got a user dataset
that shows -B not supported in their relatively recent glxinfo in their
This commit is contained in:
parent
49d9d82862
commit
9fe5b7b1b8
7
inxi
7
inxi
|
@ -6409,7 +6409,8 @@ get_graphics_glx_data()
|
|||
# if [[ $B_SHOW_DISPLAY_DATA == 'true' && $B_ROOT != 'true' ]];then
|
||||
if [[ $B_SHOW_DISPLAY_DATA == 'true' ]];then
|
||||
IFS=$'\n'
|
||||
A_GLX_DATA=( $( eval glxinfo -B $DISPLAY_OPT 2>/dev/null | gawk -F ': ' '
|
||||
# NOTE: glxinfo -B is not always available, unforunately
|
||||
A_GLX_DATA=( $( eval glxinfo $DISPLAY_OPT 2>/dev/null | gawk -F ': ' '
|
||||
# the real question here though is why this function is even here, seems
|
||||
# just to be a complicated way to pack/print a variable, but maybe the
|
||||
# original idea was to handle > 1 cases of detections I guess
|
||||
|
@ -6469,6 +6470,10 @@ get_graphics_glx_data()
|
|||
/direct rendering/ {
|
||||
$2 && c[$2]
|
||||
}
|
||||
# if -B was always available, we could skip this, but it is not
|
||||
/GLX Visuals/ {
|
||||
exit
|
||||
}
|
||||
END {
|
||||
dr = join( c, ", " )
|
||||
oglr = join( a, ", " )
|
||||
|
|
Loading…
Reference in a new issue