Bug 462093 - Add support for clipboard sharing (copy-paste) under Wayland + KVM/QEMU + Spice
Summary: Add support for clipboard sharing (copy-paste) under Wayland + KVM/QEMU + Spice
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.3
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-21 11:17 UTC by 04qw59ty
Modified: 2024-02-18 16:00 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 04qw59ty 2022-11-21 11:17:21 UTC
SUMMARY
Plasma currently does not support clipboard sharing under Wayland when used as KVM/QEMU guest. It would be great if KDE Plasma adds support for the same.

STEPS TO REPRODUCE
1. Create a KVM virtual machine using virt-manager and install any KDE Plasma based distro on a Linux host running under either X11 or Wayland.
2. Make sure Clipboard Sharing is enabled in virt-manager.
3. Login to Plasma guest under Wayland. 
4. Install spice-vdagent in the guest and enable the systemd service (`systemd enable spice-vdagentd --now`)
5. Copy any text from the host and try to paste it in Plasma guest.

OBSERVED RESULT
Text is not pasted.

EXPECTED RESULT
Clipboard content from the host should be available under Plasma.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.26.3 (all versions)
(available in About System)
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
GNOME guests already supports clipboard sharing on Wayland.
Comment 1 admin 2023-07-16 10:15:40 UTC
Just encountered this when upgrading to Debian Bookworm

KDE plasma version 5.27.5
KDE Frameworks version 5.103.0
QT version: 5.15.8
Kernel Version: 6.10.0

I think debian defaults to KDE wayland now which is why I found this, thankfully X11 is still an option.
Comment 2 zarisase 2023-07-25 16:09:58 UTC
Actually, I found this problem exists in the X11
Comment 3 zarisase 2023-07-25 16:33:04 UTC
*version
Comment 4 Pascal 2023-08-10 00:52:00 UTC
Plasma Version: 5.27.7
Frameworks Version: 5.108.0
Qt Version: 5.15.8

Graphics Platform: X11 (and Wayland), both experience the issue of the clipboard sharing between host and VM not being available, even with the spice-vdagent confirmed operating. Now, this was tested on a Kubuntu machine but also showed the same results on Debian's (12) default Plasma implementation.
Comment 5 Antti Savolainen 2024-02-18 08:40:31 UTC
Which one is the roadblock for clipboard sharing becoming available on wayland: kwin_wayland or spice-vdagent?
Comment 6 Antti Savolainen 2024-02-18 14:06:46 UTC
Relevant vdagent issuetracker https://gitlab.freedesktop.org/spice/linux/vd_agent/-/issues/26