talex5 / wayland-proxy-virtwl

Allow guest VMs to open windows on the host
Apache License 2.0
114 stars 12 forks source link

Implement socket activation #83

Closed talex5 closed 5 months ago

talex5 commented 5 months ago

Test with e.g.

dune build && \
systemd-socket-activate \
  -l /tmp/wayland-1 \
  -l /tmp/.X11-unix/X1 \
  --fdname wayland:x11 \
  ./_build/default/main.exe -v --virtio-gpu --tag '[socket] ' --x-display 1

This is similar to @alyssais's #80, but I put the activation protocol in its own module and made it more generic. This should make it easier to reuse in future, and makes main.ml a bit easier to read.