Hi again,
Let me add a clearer answer for who would need it. Note that the "load ui parts" as a note of my first email is no more, I think it was due to a conflict between WSLg and the export DISPLAY command in the Linux VM.
System info :
- Windows 11 with Ubuntu 20.04.4 on WSL2 (note that WSLg is embedded natively),
- Gama 1.8.2
dcc3bf6a
zip release, with JDK or OpenJDK 17 (tested both with all scenarios, no differences),
- VcXsrv in scenario 2 (I did not test everything with XMing, but every time I did, I had the same behaviour than with VcXsrv),
- Windows' Remote Desktop with xrdp in scenario 3 (setup like this, or something similar),
- Command to export display in Ubuntu (in .bashrc on scenario 2 and 3) : export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 && export LIBGL_ALWAYS_INDIRECT=true,
- A .wslconfig file lives in Windows
user directory ( C:\Users\Me\), with the following : [wsl2] guiApplications=true/false.
Case 1 : "Vanilla" WSLg
Description :
guiApplications=true, VcXsrv not running and no DISPLAY forwarded by the VM. Gama launched from linux bash :
./Gama.
Results :
- Gama launches, although not in a normal WSLg window...
- Java2D -> runs, but displays nothing (first screenshot)
- OpenGL -> crash
(A normal WSLg window for reference :

)
Case 2 : WSLg disabled, display forwarded to X server
Description :
guiApplications=false, VcXsrv runs (options : multiple windows, display 0 and -ac) and DISPLAY forwarded through the command mentioned above.
Gama launched from linux bash :
./Gama.
Results :
- Gama launches in an X window, but somehow the "Dark theme" option is greyed out...
- Java2D -> works properly
- OpenGL ->
works properly (! @Lucas)
(The issue here being that I need to use WSLg for several other things, so this is not a durable solution)
Case 3 : Desktop environment
Description :
xfce4 seen through xrdp and Remote Desktop. Gama launched by double clicking the binary file or
with ./Gama.
Results :
- Gama launches properly.
- Java2D -> Runs
- OpenGL -> Runs very slowly (note that this is a fresh Gama install, I did not mess with the settings and the INI)
I hope it is clearer. Now my hope would be to have WSLg working properly, since it is the handier. What could be the issue with these displays not showing?
Good day all,
Arthur