Windows 10 now lets you seamlessly run Linux GUI apps

Windows 10 now lets you run Linux GUI apps (X11 and Wayland) without using a virtual machine after Microsoft added GUI support to the Windows Subsystem for Linux (WSL).

"The Windows Subsystem for Linux now includes a first preview of support for GUI applications," Senior Program Manager Brandon LeBlanc said. "This means you can now run your favorite GUI editors, tools, and applications, to develop, test, build and run your Linux apps!"

Microsoft designed the WSL compatibility layer to make it possible for Windows 10 customers to run Linux binaries in ELF format natively on their Windows computers, in a PowerShell or Windows 10 command prompt.

WSL 2, the next iteration of WSL, increases file system performance and supports full system call compatibility and it uses virtualization tech to run a full Linux kernel inside a lightweight virtual machine (VM).

Announced during BUILD 2020

While users have been asking Microsoft to add support for the Wayland protocol in WSL to allow GUI Linux apps to work since at least 2016, the company only announced intentions to introduce Linux GUI support in WSL last year, at BUILD 2020.

The new feature dubbed WSLg (short for Windows Subsystem for Linux GUI) has been added to Windows 10 Insider Preview Build 21364, the latest Preview build available for Insiders in the Dev Channel.

As previously described, it enables you to use your favorite Linux GUI applications in Windows as you would use them on a Linux desktop.

"WSLg strives to make Linux GUI applications feel native and natural to use on Windows," Microsoft describes the feature on its GitHub page.

"From integration into the Start Menu for launch to appearing in the task bar, alt-tab experience to enabling cut/paste across Windows and Linux applications, WSLg enables a seamless desktop experience and workflow leveraging Windows and Linux applications."

WSLg-Architecture
WSLg architecture (Microsoft)

Windows Developer Platform Program Manager Craig Loewen shared some use cases for WSLg, including developing, debugging, and testing Linux projects using your favorite IDE, and using Linux apps with audio or 3D acceleration built-in support.

As Loewen explained, WSLg will automatically start "a companion system distro, containing a Wayland, X server, pulse audio server, and everything else needed to make Linux GUI apps communicate with Windows."

"After you’re finished using GUI applications and terminate your WSL distribution the system distro will automatically end its session as well," he added.

An in-depth view of how this feature works, including additional technical details, is available in this blog post.

How to install and use WSLg

Detailed instructions on installing WSLg on Windows 10 computers running the latest Insider preview build are available here.

"Please note that WSLg is only compatible with WSL 2 and will not work for WSL distribution configured to work in WSL 1 mode," Microsoft explains. "Verify that your Linux distro is configured for running in WSL 2 mode, if not switch to WSL 2."

Microsoft also provides step-by-step guidance on how to install and launch Linux GUI apps on your PC. Once installed, they can be launched from the Start menu or a terminal window.

A video demo of WSLg in action recorded by Loewen is embedded below.

Related Articles:

Windows 10 KB5037849 update released with 9 changes or fixes

Windows 10 KB5037768 update released with new features and 20 fixes

Microsoft fixes bug behind incorrect BitLocker encryption errors

Microsoft April 2024 Patch Tuesday fixes 150 security flaws, 67 RCEs

Windows 10 KB5036892 update released with 23 new fixes, changes