On 22/01/2025 16:06, Rafał Lichwała wrote:
I cannot successfully set shared clipboard between host and guest machines when both run Wayland desktop.
[...]
So I cannot copy some text to clipboard on host machine and paste it on guest machine.
[...]
1. On guest machine installed spice-vdagent package

I suspect it is some general bug in KDE implementation of XWayland. Sometimes it is unable to synchronize X11 and Wayland selections. VMs and spice-vdagent is just a specific case of an application that uses X11 selections. Likely GNOME has independent implementation of the related Wayland protocols and so unaffected. Wayland world is much more fragmented than X11, every compositor has its own limitations and bugs.

I spent some time playing with xclip, wl-clipboard, konsole, xterm, and vim-gtk running in terminal application. It was a qemu KVM guest with Wayland KDE plasma session while X11 KDE session was running on the host. Issues appear when applications try to access selection from different protocol, e.g. set by a Wayland application, get by an X11 one or vice versa even within the VM. X11 selections are synchronized between the host and the guest.

Some bugs have been fixed since the version packaged in bookworm, e.g.
<https://bugs.kde.org/show_bug.cgi?id=490577>
Copy paste function does not work from wayland into x11 (xwayland) window after several minutes

Has anybody tried Wayland and X11 selection interaction in trixie KDE Wayland session?

Reply via email to