Skip to content

Instantly share code, notes, and snippets.

@ardislu
Created February 14, 2025 06:47
Show Gist options
  • Save ardislu/131fb483d3931b46769bfd858e632ac7 to your computer and use it in GitHub Desktop.
Save ardislu/131fb483d3931b46769bfd858e632ac7 to your computer and use it in GitHub Desktop.

Modern versions of WSL2 can run GUI applications out of the box via WSLg.

  1. Install desired GUI application:
sudo apt install nautilus -y
  1. Run it:
nautilus .

If you are getting this error:

libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI3: Screen seems not DRI3 capable
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

Try (answer adapted from microsoft/wslg#1283 (comment)):

ln -sf /mnt/wslg/runtime-dir/wayland* "/run/user/$(id -u)/"

Then re-run:

nautilus .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment