Opened 3 weeks ago
#22355 new defect
Clipboard sharing copy paste fails in guest Kubuntu 24.10 KDE/Wayland session
Reported by: | Rich McAllister | Owned by: | |
---|---|---|---|
Component: | guest additions | Version: | VirtualBox-7.1.6 |
Keywords: | Cc: | Rich McAllister | |
Guest type: | Linux | Host type: | Windows |
Description
While I reproduced this on a recent Kubuntu 24.10 (plucky) nightly build, I suspect the same problem would occur in earlier, actually released, versions.
I installed Xubuntu 24.10 in a guest created on a Windows 11 host running VBox 7.1.6, enabling bidirectional clipboard sharing. I installed a very recent test build (7.1.7-167747) of the Guest Additions, this was required as earlier versions won't install on the Linux kernel version 6.14. Logged on to a KDE/Wayland session as a freshly created user (so no user customizations) and tried to copy some text from a guest terminal window to a host window, nothing happened.
Examination shows the X11 versions of VBoxClient were running instead of VBoxClient --wayland. This turns out to be because VBoxClient-all tests for a Wayland session, but /usr/bin/vboxwl --check prints X11 on this session, perhaps because it uses Xwayland to support old clients.
I was able to work around this by copying /usr/bin/VBoxClient-all to a private directory, editing it to replace the vboxwl check with "true", copying /etc/xdg/autostart/vboxclient.desktop to ~/.config/autostart, editing it to exec my private copy of VBoxClient-all.
(I also had to install libX11-dev and libwayland-dev, since VBoxClient dlopens those through the unversioned symlink.)
I'm attaching a vbox.log of booting the guest, logging on the fresh user, trying the copy/paste.