There are plenty of components involved in "trying" to fix this by spice upstream. The discussion in https://gitlab.freedesktop.org/spice/linux/vd_agent/-/issues/9 is rather long. It eventually seems to be fixed in https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/4 I think we have all components in place, except the spice-vdagent 0.20 and maybe spice-protocol 14.1.
The series of fixes for spcie-vdagent linked there would be: e0bfa67 configure: bump gtk+ >= 3.22 2c72378 clipboard: remove vdagent-selection-id usage 79d0125 configure: depend on gobject ff30f58 configure: bump gobject >= 2.50 fb69a49 vdagent: use G_OPTION_FLAG_NONE aa26d1d clipboard: gobject-ify VDAgentClipboards 2ad6c15 clipboard: filter out only our own events c9e8067 clipboard: only send release when no immediate grab a2fc33c clipboard: implement CAP_CLIPBOARD_GRAB_SERIAL >From https://gitlab.freedesktop.org/spice/linux/vd_agent.git Our libglib2.0-dev and libgtk-3-dev are new enough as well. But spice-protocol needs: 045a6978 vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL 4f397d69 vdagent: introduce VD_AGENT_CAP_CLIPBOARD_NO_RELEASE_ON_REGRAB That is in 0.14.1 which only is in Ubuntu 20.10 already, but not in Focal (14.0 there). I'd expect that 0.20 would not even build without spice-protocol 0.14.1 since the definition of VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL is missing. Well it might skip it safely. But the report of lwk32 says building 0.20 is fixing his issue, so let us give it a try. We cant take: a2fc33c clipboard: implement CAP_CLIPBOARD_GRAB_SERIAL c9e8067 clipboard: only send release when no immediate grab without this change to spice-protocol which is hard to SRU. The rest of the patches applies cleanly, but I'm unsure if there can be any gain without these final commits. @lwk32 would you mind giving the PPA [1] a try with an otherwise unmodified Ubuntu 20.04 if that fixes the issue for you as well? P.S. We might want to wait until the more clear fix in bug 1852183 lands to not mix results of verifications of -proposed - but we can sniff things right now based on the PPA. [1]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4060 ** Bug watch added: gitlab.freedesktop.org/spice/linux/vd_agent/-/issues #9 https://gitlab.freedesktop.org/spice/linux/vd_agent/-/issues/9 ** Also affects: spice-protocol (Ubuntu) Importance: Undecided Status: New ** Changed in: spice-protocol (Ubuntu) Status: New => Fix Released ** Changed in: spice-protocol (Ubuntu Focal) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to spice-vdagent in Ubuntu. https://bugs.launchpad.net/bugs/1872527 Title: Clipboard doesn't work 100% of the time in Ubuntu 20.04 (in KVM guests) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1872527/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs