Member-only story
️Using WLS 2 and WSLg for development on Windows 11 (final part)
Now windows 11 supports running Linux GUI apps natively!

About two years ago, I wrote two articles about running Linux GUI applications on windows 10 on top of the WSL 2. At that time, I was on a project, and I had a Surface Laptop machine I had some trouble with my windows machine, and by moving my entire development environment into a WSL 2 VM, development on a windows machine became more comfortable and faster for me.
In the first article, I described how to Using WSL 2 to develop Java application on Windows
, this article showed how to install and configure an X server client (VcXsrv) on Windows 10 and then run IntelliJ Idea inside the WSL 2 and load the GUI using the X server client in the Windows 10.
In the second article, I expanded my first article and showed how to Using WSL 2 to run Linux GUI applications in Windows 10 with a shortcut
and made running a Linux GUI program using WSL 2 in windows 10 easier by creating shortcuts and more.
But nowadays, you don't need to do these tricks to run IntelliJ Idea
inside the WLS 2 VM and work with the GUI in Windows. Now Windows 10 and 11 support this feature natively!
· Now Windows has WSLg in addition to WSL
∘ How to enable this feature
∘ How to install Linux software
∘ How to install the snap package in WSL 2
∘ How to run IDEs on the WSL 2
∘ Performance
∘ Limitation
· Conclusion
Now Windows has WSLg in addition to WSL
What is WSLg:
WSLg is short for Windows Subsystem for Linux GUI and the purpose of the project is to enable support for running Linux GUI applications (X11 and Wayland) on Windows in…