Opticos/GWSL-Source

Add vcxsrv.exe to VCXSRV directory

jonaskuske opened this issue · 1 comments

Not 100% sure why, but VcXsrv breaks in -nowgl mode when the .exe vcxsrv.exe doesn't exist.

Repro

In PowerShell:

# copy VCXSRV dir from GWSL into Downloads where we have permission to run executables
# (or just clone the repo)
cp -Recurse $env:ProgramFiles\WindowsApps\28644OpticosStudios.GWSL_1.4.3.0_x64__r3mwbcqrwk84r\GWSL\VCXSRV ~\Downloads\VCXSRV

# run GWSL_vcxsrv.exe
& ~\Downloads\VCXSRV\GWSL_vcxsrv.exe -ac -multiwindow -nowgl

then in WSL (Ubuntu 20.04):

# install the epiphany browser (aka Gnome Web)
sudo apt install -y epiphany-browser
# run it
LIBGL_ALWAYS_INDIRECT=0 epiphany

Navigate to https://html5test.com (or any complex page) and it'll crash. 😢

Now, stop VcXsrv in the system tray, then in PowerShell:

# Create a copy of GWSL_vcxsrv.exe called vcxsrv.exe
cp ~\Downloads\VCXSRV\GWSL_vcxsrv.exe ~\Downloads\VCXSRV\vcxsrv.exe
# run GWSL_vcxsrv.exe again
& ~\Downloads\VCXSRV\GWSL_vcxsrv.exe -ac -multiwindow -nowgl

Now you can run LIBGL_ALWAYS_INDIRECT=0 epiphany in WSL and open websites like https://html5test.com without any crashes 🎉

Fixed with vcxsrv update