https://gitlab.freedesktop.org/mstoeckl/waypipe
https://forum.sailfishos.org/t/fun-with-remote-wayland-waypipe/16997
freebsd
sudo pkg install waypipe
ubuntu
sudo apt install waypipe
freebsd
create the client socket in the ubuntu chroot tmp directory from the freebsd host
waypipe --socket /compat/ubuntu/tmp/waypipe.sock client &
ubuntu chroot create the server socket that matches the same path as the client socket in the tmp directory
waypipe --socket /tmp/waypipe.sock server qt5ct
kill
kill %1
rm /tmp/waypipe.sock