Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy and Paste / Drag and Drop not working - This is how I fixed it for jelly #627

Open
ErikSchutte opened this issue Nov 30, 2022 · 11 comments
Labels

Comments

@ErikSchutte
Copy link

ErikSchutte commented Nov 30, 2022

Describe the bug

Copy and pasting, drag and drop, from host to guest, does not work through shortcuts.

In this scenario you can copy, and go to VMWare > Edit > Paste but cannot use the shortcuts to do so.
Though this is not a direct open-vm-tools bug I wanted to post this here as I myself landed here first when googling for a solution.

Figuring out what was going on took me some hours today so hopefully this effort will safe others time.

TLDR;
A very very long story short, run “kwriteconfig5 –file startkderc –group General –key systemdBoot false” and reboot your VM.

EDIT: Apologies for the images, they are being cropped when I upload them.

  1. Make sure you have the ‘open-vm-tools’ & ‘open-vm-tools-desktop’ installed on your guest vm and that these services are running!
    image

  2. Check that these boxes are checked and greyed-out.

image

  1. Check if all vmtools process are correctly running:

image

EDIT: command here is "ps -aef | grep vmtoolsd"

“vmtoolsd” is the system service process
“vmtoolsd -n vmusr” is the graphical desktop user which vmtoolsd process uses for interactions such as copy and paste or drag and drop. This process was not running in my case -> Read on at 4 on how to address this.

In my case there is a “—blockFd 3” argument which hints at your graphical client being Xorg/X11. If this is “—uinputFd=4” this hints at your graphical client being Wayland. Wayland has lots of issues with copy and paste & drag and drop within VMWare. Consider switching graphical client on the login screen of your vm.

image

EDIT: images are cropped -> basically on the login screen you'll be able to switch between Xorg/X11 or Wayland.

  1. A very very long story short, run “kwriteconfig5 –-file startkderc –-group General –-key systemdBoot false” and reboot your VM. Then check if the user comes pu when you run “ps -aef | grep vmtoolsd”
    a. If you’re in to this read the following:
    i. https://docs.vmware.com/en/VMware-Tools/12.1.0/com.vmware.vsphere.vmwaretools.doc/GUID-C6066CB0-33EA-4652-9AB3-0324080DCBEE.html On why we need to manually run vmtoolsd -n vmusr.
    ii. vmware-user-suid-wrapper.desktop is not autostarted in fedora kde 35 #568 On why the vmware user wrapper is not autostarted on KDE.
    iii. https://bugzilla.redhat.com/show_bug.cgi?id=1953472 On where the upstream bug might potentially be.
    iv. Introduce ExitType systemd/systemd#18782 Related to the upstream bug for system, exit types are redefined.
    v. https://bugs.kde.org/show_bug.cgi?id=455252 On the work around for now.

Reproduction steps

  1. Upgrade VMWare to latest 16.2.4 (see context)
  2. Upgrade KDE Neon to latest (jelly, see context)
  3. Run ps -aef | grep vmtoolsd, there will be no "vmusr" as shown below.
    image
  4. Copy pasting and dragging and dropping between host and guest will not work.

Expected behavior

Running vmware-user to interact with graphical shell and allow copy pasting and dragging and dropping.

Additional context

image
image
image

@ErikSchutte ErikSchutte changed the title DnD/Copy'nPaste not working? Here is a fix if you stumble on this bug report. Copy and Paste / Drag and Drop not working - This is how I fixed it for jelly Nov 30, 2022
@ptr1120
Copy link

ptr1120 commented Dec 19, 2022

@ErikSchutte : thanks for the workaround, it helped me very much.
Since the described command is suddenly broken ( instead of -- for the command arguments) here the command with working parameters:

kwriteconfig5 --file startkderc --group General --key systemdBoot false

@lamskoy
Copy link

lamskoy commented Feb 17, 2023

@ErikSchutte : thanks for the workaround, it helped me very much. Since the described command is suddenly broken ( instead of -- for the command arguments) here the command with working parameters:

kwriteconfig5 --file startkderc --group General --key systemdBoot false

this one workaround worked for me, thanks

@polarathene
Copy link

Really nice report!

Instead of disabling the systemd boot default KDE Plasma now uses, a better workaround has been found:

#568 (comment)

It should work for everyone I think, if not it would be good to know. Fixing the systemd service would be more reliable to contribute as a fix, than the workaround with kwriteconfig5 proposed here.

@tommdq
Copy link

tommdq commented Aug 28, 2023

So just run kwriteconfig5 --file startkderc --group General --key systemdBoot false in the vm or in the host SO?

@ErikSchutte
Copy link
Author

So just run kwriteconfig5 --file startkderc --group General --key systemdBoot false in the vm or in the host SO?

Inside the VM. Good luck!

@polarathene
Copy link

polarathene commented Aug 28, 2023

@tommdq you should not need to do that if you have systemd v254 (released July 2023, may not be available in non-rolling distros yet) in the VM? (or when you eventually do with an update/upgrade, that workaround shouldn't be necessary)

There are other workarounds available for older systemd versions, you just need to make a small override via drop-in to the systemd service (as referenced by my prior comment).

@tommdq
Copy link

tommdq commented Sep 3, 2023

@tommdq you should not need to do that if you have systemd v254 (released July 2023, may not be available in non-rolling distros yet) in the VM? (or when you eventually do with an update/upgrade, that workaround shouldn't be necessary)

There are other workarounds available for older systemd versions, you just need to make a small override via drop-in to the systemd service (as referenced by my prior comment).

I'm using Parrot OS and have 525.5-2~bpo11+1 systemd. I read your comment but don't quite understand if that's just for Kubuntu or if it also works for Parrot

Thank you in advance for your help!

@polarathene
Copy link

I'm using Parrot OS and have 525.5-2~bpo11+1 systemd.

v254 was released at the end of July, v525 isn't released yet... so not sure why your OS would already have that, maybe a typo on your end?

I read your comment but don't quite understand if that's just for Kubuntu or if it also works for Parrot

It should be for any distro using systemd. v254 fixes the issue when your OS is using systemd-xdg-autostart-generator. I only know of KDE Plasma using that, but other DE might as well? 🤷‍♂️

@ericzuck
Copy link

ericzuck commented May 3, 2024

Just installed KDE on RHEL 9 -- this procedure saved me. Thanks.
FWIW -- RHEL9 is running systemd v252

@marbaa
Copy link

marbaa commented Jun 11, 2024

I'm unable to get fully working clipboard in KDE under Wayland. Tried any possible workaround but not possible. Clipboard between host <-> guest works only on Non-KDE native apps, like Firefox.

Clipboard between host <-> guest doesn't work from KDE native apps, like Terminal, Dolphin, Kate, etc. Really frustrating that this bug exists for so many years.

VMware Player 17.5.0
Debian 12
KDE: 5.27.5
Framework 5.103.0
QT: 5.15.8

Opensuse 15.5 - here clipboard even doesn't work from Non-KDE apps.
KDE: 5.27.9
Framework 5.103.0
QT: 5.15.8
Kernel: 5.14.21

@TheKidUnknown
Copy link

Just installed KDE on RHEL 9 -- this procedure saved me. Thanks.
FWIW -- RHEL9 is running systemd v252

Still works for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants