Operations 4 min read

Run Linux GUI Apps on Windows: Install and Explore WSLg

This guide explains how to enable Windows Subsystem for Linux GUI (WSLg) on Windows, covering enrollment in the Windows Insider Dev channel, updating or installing WSL, the architecture of WSLg with Wayland, X11, RDP integration, audio support, and future extensions like DirectML.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Run Linux GUI Apps on Windows: Install and Explore WSLg

How to Install WSLg

First join the Windows Insider Program and select the Dev channel, then upgrade Windows to the latest preview build.

If WSL is already installed, run wsl --update; otherwise run wsl --install to get the latest version with WSLg.

After the download, restart the computer; the installation completes automatically and the Linux GUI applications appear in the Windows Start menu.

WSLg Architecture Overview

WSLg provides both X11 and Wayland display protocols and can be accessed through Microsoft’s built‑in Remote Desktop.

It is based on the Wayland compositor Weston , which hosts an XWayland server for X11 apps. The RDP backend is heavily extended, supporting RDP‑RAIL for single‑window display and VAIL for shared‑memory transport.

WSLg architecture diagram
WSLg architecture diagram

Audio is handled by a small plugin that forwards PulseAudio streams through the RDP channel, enabling input and output on the host.

Audio plugin diagram
Audio plugin diagram

Additional components include a background service that starts and pauses the Weston core, manages RDP connections, and restarts on failure, as well as an application‑management plugin for installing and uninstalling Linux apps.

Background service diagram
Background service diagram

Additional Features

Microsoft has integrated the DirectML machine‑learning API into WSL, allowing developers to train neural networks directly inside the Linux subsystem without a separate Linux installation.

DirectML integration diagram
DirectML integration diagram

Conclusion

The WSLg team plans to continue improving the project, and rumors suggest an Android subsystem is in development, positioning WSL as a versatile container for many operating‑system workloads.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

WindowsInstallationWSLWaylandLinux GUIWSLg
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.