I ran the application (Intellij IDEA in my case) like this (without VcXsrv) in WSL2.
export LIBGL_ALWAYS_SOFTWARE=1 && export DISPLAY=:0 && nohup idea.sh &
But after some time I observed 1-5-10 second freezes in the GUI interface.
- Install VcXsrv that is an open-source and frequently updated Windows X Server (it will be the provider of graphics resources and keyboard/mouse events), then start it as follow:
- Use multiple windows