[Gambas-user] X11 Display

Bruce adamnt42 at gmail.com
Sun May 16 08:42:28 CEST 2021

On 15/5/21 11:25 pm, John Dovey wrote:
> Probably a *noob* question, but when I start gambas3 from the command line
> on Ubuntu 20.04 WSL2, I get the following:
> $ gambas3
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
> '/tmp/runtime-boondock'
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> Any idea what this means? Is there something I need to configure or install?
> Thanks
> John
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

You have two warnings there. The first one,
"QStandardPaths: XDG_RUNTIME_DIR not set, defaulting 
is a standard QT warning about your environment. To check it further run 
(in a console) env | grep XDG

You should get something like
[bb at bluecow2 ~]$ env | grep XDG

If you dont have XDG_RUNTIME_DIR set then there is something "amiss" in 
your login settings and we'll have to more digging.

The second one,
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
is a bit harder to dig into. It has something to do with your system, 
either the X configuration, the actual library itself, your hardware or 
your hardware setup. Rather than guess here I'll just say that it 
probably won't affect your Gambas usage UNLESS you do some 3D stuff.
Loose translations are:
fbConfigs : There is no framebuffer configuration for something
visuals : other things that libGL tries to find if not using a 
framebuffer video driver (GPU)
swrast : some sort of raster based video library or kernel module or who 

Neither of these warnings "should" affect yuor Gambas usage - hopefully. 
But I will add this final observation. If I use the Gambas Shell command 
to go from one program to another I frequently get the XDG_RUNTIME_DIR 
warning. Why, I have no idea! Does it affect anything, not thatI can see.

More information about the User mailing list