Multiple WSL2 distros connected to single X11 server

Solution 1:

XFCE Terminal has a mechanism where it tries to find running instances using DBus. This behavior can be disabled using --disable-server.


All WSL 2 distributions run in a single virtual machine. They also share a single network namespace:

two terminals, two distribution, same network config

I’m not familiar with DBus, but I see that it supports TCP transports. UNIX socket would probably not be shared between WSL 2 distributions due to different namespaces for:

  • ipc
  • mnt
  • pid & pid_for_children
  • uts

However, it’s feasible for DBus connections to go to another distribution via TCP. That could cause interesting behavior when using desktop software.