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 Desktop
Packages, 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)

Status in qemu package in Ubuntu:
  Invalid
Status in spice package in Ubuntu:
  Invalid
Status in spice-protocol package in Ubuntu:
  Fix Released
Status in spice-vdagent package in Ubuntu:
  Fix Released
Status in virt-manager package in Ubuntu:
  Invalid
Status in spice-protocol source package in Focal:
  Incomplete
Status in spice-vdagent source package in Focal:
  Triaged
Status in spice-vdagent package in Debian:
  Fix Released
Status in spice package in Fedora:
  Unknown

Bug description:
  https://gitlab.freedesktop.org/spice/linux/vd_agent/issues/9

  ---

  I'm testing Ubuntu 20.04 LTS (Focal Fossa) Beta.

  I installed Kubuntu 20.04 and virt-manager as I did many times on
  Ubuntu 18.04. Unfortunatelly when I run a VM (QEMU-KVM, libvirt,
  libspice-server1 and spice-vdagent) with another Kubuntu 20.04 guest
  or with Ubuntu 20.04 guest then clipboard doesn't work right.

  To test it, please install Kubuntu 20.04 and then install Kubuntu /
  Ubuntu 20.04 as VM (guest). Open some simple text editor and start
  Ctrl + C and Ctrl + V plain text. 90% of time it will work and 10% of
  time it won't.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: virt-manager 1:2.2.1-3ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
  Uname: Linux 5.4.0-21-generic x86_64
  ApportVersion: 2.20.11-0ubuntu26
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: KDE
  Date: Mon Apr 13 15:02:22 2020
  InstallationDate: Installed on 2020-04-09 (4 days ago)
  InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
  PackageArchitecture: all
  SourcePackage: virt-manager
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1872527/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to