7

Are there any equivalents to X11's Xvfb for Wayland?

So wayland applications can run with OpenGL etc without having to connect to a physical graphics card?


Asking since I would like to run tests for graphical applications that can run on a headless server for example.

Note: while it's technically possible to run wayland within a virtual X11 session, I'd rather not depend on this for my testing framework if possible.

ideasman42
  • 1,091
  • 1
  • 10
  • 23

1 Answers1

4

Sway supports this: its WLR_BACKENDS variable can be set to headless, and it will run without any display.

See swayvnc for an example of this being used in practice; this is the base for swayvnc-firefox which provides a VNC-accessible “headless” Firefox.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164