On 24/01/2025 14:12, Rafał Lichwała wrote:
so I am not
sure if the following link from my notes would be helpful. At least it
might give some hint for debugging or some keywords to search for.
Gerd Hoffmann. Adding cut+paste support to qemu. 2021
https://www.kraxel.org/blog/2021/05/qemu-cut-paste/
(clipboard for vnc and gtk display options in addition to spice one)
I've been there already on this page, but this blog is not clear for me.
What to change and configure to make it working?
But that's the nature of blogs I think - a nice story about some subject
to keep reading, but nothing concrete or applicable...
If I simply don't understand this and you can translate this blog text
to simple receipt - please help :-)
BTW - my use case is not VNC and not GTK (Qt rather), so I'm not sure
even if this text is adequate.
I have not noticed what qemu -display option you use, that is why I
added a kind of disclaimer. My guess was SPICE and since it has been
deprecated, I would not be surprised by arbitrary issues with Wayland. I
consider it as a necessity (a low priority task in my case) to try other
GUI options (might be even RDP). However if qemu vdagent relies on
spice-vdagent then the approach described in the blog post would
unlikely help.
Maybe your issue could not be solved without adding support of Wayland
to spice-vdagent. Otherwise, in my opinion, the blog post still gives
some hints:
- check that /dev/virtio-ports/com.redhat.spice.0 is created inside the VM,
- check that system spice-vdagentd service is able to start and to run
without errors,
- check the same for spice-vdagent service in user session.
I tried Wayland several times, but I have never desperately need it, so
my decisions were to give developers more time to fix various issues.
Out of curiosity I have tried to ask a search engine of qemu clipboard
in wayland issues. The result is more questions rather than answers.
- Is mutter really has some workarounds (absent in KDE and it might be
decision of KDE developers) to sync Wayland and X11 clipboards? So there
is no issue with GNOME.
- Is clipboard sync is responsibility of XWayland? Is is started with
user session or on demand with some X11 application? Can spice-vdagent
handle XWayland crash and restart?