XWayland

XWayland is an X server that runs as a client of a Wayland compositor, allowing legacy X11 applications to run in a Wayland session.

Basic usage

Compositors usually start XWayland automatically. X11 apps then see a normal DISPLAY:

echo $DISPLAY          # e.g. :0 provided by XWayland
xeyes                  # an X11 app running under Wayland

Incus containers

Getting incus lxc containers to work on XWayland would need additional configuration because .Xauthority doesn’t exist:

xhost +local: