I'm using Windows 11 WSLg (installed using the Windows Subsystem for Linux Preview from the Microsoft Store) and the current WSL Ubuntu distribution from the Microsoft Store.
How can I launch xfce4
or another Ubuntu desktop?
Currently an apt install xfce4
followed by startxfce4
produces the errors cannot open display: wayland-0
+Failed to connect to session manager
and some other output.
With Windows 10 WSL2, I didn't hit any issues launching xfce4
after the VcXsrv client was installed and running on Windows. The latter, as I understand it, isn't supposed to be necessary with Windows 11 WSLg.
I can launch standalone x-windows apps like the xfce4-appfinder
, thunar
file manager, and terminal emulator without issues.