Operations 12 min read

Running Linux Desktop Apps on Windows? Experience WSLg’s GUI Integration

This guide explains how to enable WSLg on Windows 11 or Windows 10 21H2+, install and run a variety of Linux GUI applications—browsers, editors, image tools, and utilities—while offering performance tweaks, DPI scaling tips, troubleshooting steps, and a real‑world image‑processing example.

Ubuntu
Ubuntu
Ubuntu
Running Linux Desktop Apps on Windows? Experience WSLg’s GUI Integration

What is WSLg

WSLg = Windows Subsystem for Linux + Graphics. It enables Linux GUI applications to run on the Windows desktop as native‑looking windows with title bars, task‑bar icons, and standard window management.

System requirements

Operating system: Windows 11 (recommended) or Windows 10 version 21H2 or newer

WSL version ≥ 0.58.0 (check with wsl --version)

GPU with Vulkan or OpenGL support (most modern GPUs)

Enabling and verifying WSLg

WSLg is enabled automatically when WSL is installed on a supported Windows version. To verify:

# Update WSL to the latest release
wsl --update
# Restart the WSL VM
wsl --shutdown
# Open the Linux distro and check environment variables
echo $DISPLAY   # should output something like :0 or :1
echo $WAYLAND_DISPLAY   # should output wayland-0 or similar

If GUI apps fail to start, ensure /etc/wsl.conf does not contain conflicting settings.

Verified GUI application list

Browsers (recommended)

Firefox – install with sudo apt install firefox – best compatibility on WSLg

Chromium – install with

sudo apt install chromium-browser

File managers

Nautilus – sudo apt install nautilus – GNOME file manager

Thunar – sudo apt install thunar – lightweight XFCE file manager

Editors

Gedit – sudo apt install gedit – Notepad‑like editor with GUI

GVim – sudo apt install vim-gtk3 – GUI version of Vim

Geany – sudo apt install geany – lightweight IDE

Image tools

GIMP – sudo apt install gimp – free Photoshop alternative

Image Viewer (eog) – sudo apt install eog – GNOME image viewer

Screenshot & screen‑recording

Flameshot – sudo apt install flameshot – powerful screenshot tool with annotation

SimpleScreenRecorder – sudo apt install simplescreenrecorder – screen‑recording utility

Other utilities

xclip – sudo apt install xclip – clipboard enhancement

wslu – sudo apt install wslu – WSL utilities (e.g., wslusc to create Windows shortcuts)

file-roller – sudo apt install file-roller – archive manager supporting zip/rar/7z

GHex – sudo apt install ghex – hex editor

One‑click installation of common GUI apps

sudo apt update && sudo apt install -y \
    firefox \
    nautilus \
    gedit \
    gimp \
    flameshot \
    file-roller \
    wslu \
    xclip \
    eog

Practical usage tips

Run in background : append & or use nohup to avoid occupying the terminal.

Open files with the default GUI : wslview report.pdf (requires wslu) or xdg-open screenshot.png.

Launch from PowerShell : wsl firefox https://ubuntu.com, wsl gedit "D:\notes\todo.txt", wsl nautilus.

Clipboard sharing : text copied in a WSL GUI app (Ctrl+C) can be pasted directly into Windows applications and vice‑versa.

Drag‑and‑drop : files can be dragged between Nautilus (WSL) and Windows programs such as VS Code or GIMP.

Performance & experience optimisation

Allocate more resources to WSL

# ~/.wslconfig
[wsl2]
memory=8GB
processors=6
swap=4GB
vmIdleTimeout=-1

GPU acceleration is enabled by default. Verify with:

vulkaninfo --summary 2>/dev/null || echo "vulkan-tools not installed"
glxinfo | grep "OpenGL renderer" 2>/dev/null || echo "mesa-utils not installed"

High‑DPI scaling

# GTK applications (e.g., Gedit, Nautilus)
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
# Qt applications
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_SCALE_FACTOR=2
# Append the above lines to ~/.bashrc for persistence

Scenarios where WSLg is unsuitable

3A games – limited GPU driver support and noticeable performance loss; run games natively on Windows.

Professional video editing (Premiere, DaVinci) – no Linux version or insufficient performance; use Windows tools.

Full desktop environments (GNOME, KDE) – WSLg provides single‑application windows, not a complete desktop; use a virtual machine instead.

Hardware‑intensive apps (audio production, USB devices) – limited audio/USB support; prefer native Windows environments.

Known limitations

Native Wayland applications are not supported; they require an X11/Wayland compatibility layer.

Some 3D acceleration features are restricted, affecting games and CAD software.

Audio support is basic (PulseAudio works but is not suited for professional audio work).

Camera and microphone compatibility may be incomplete.

Real‑world example: processing Windows images with Linux tools

Batch convert PNG to JPG using ImageMagick

# Install ImageMagick
sudo apt install imagemagick
# Create an output directory on the Windows side
mkdir -p /mnt/c/Users/zhangsan/Pictures/output
# Convert all PNG files to JPG
for f in /mnt/c/Users/zhangsan/Pictures/*.png; do
    convert "$f" "/mnt/c/Users/zhangsan/Pictures/output/$(basename "$f" .png).jpg"
done
# Open a single image with GIMP for fine editing
gimp "/mnt/c/Users/zhangsan/Pictures/photo.png"

Quick edit with GIMP

# Open a Windows picture directly in GIMP
gimp "/mnt/c/Users/zhangsan/Desktop/screenshot.png"
# Inside GIMP you can adjust brightness/contrast, crop, add text or watermark, and export back to the Windows folder.

Summary

WSLg extends WSL from a terminal‑only environment to a full GUI experience, allowing Linux browsers, editors, image tools, and utilities to run side‑by‑side with Windows applications. After confirming system requirements and updating WSL, most apps launch out‑of‑the‑box with a simple apt install. Performance can be tuned via ~/.wslconfig and DPI‑scaling environment variables, while clipboard sharing and drag‑and‑drop provide seamless integration. Limitations remain for high‑performance 3D games, professional video/audio editing, and full desktop environments, which are better served by native Windows tools or virtual machines. The included ImageMagick batch conversion and GIMP editing workflow demonstrates how Linux utilities can augment Windows‑based image‑processing tasks.

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.

WindowsImageMagickWSLUbuntuLinux GUIWSLgGIMP
Ubuntu
Written by

Ubuntu

Focused on Ubuntu/Linux tech sharing, offering the latest news, practical tools, beginner tutorials, and problem solutions. Connecting open-source enthusiasts to build a Linux learning community. Join our QQ group or channel for discussion!

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.