KDE Plasma 6 Clipboard dysfunctional behavior

I recently replaced my laptop and in the process I switch from Manjaro XFCE to Manjaro Plasma.

I have had nothing but problems with the clipboard and my Bitwarden password manager.

Manually highlighting text and using Ctrl-C works consistently, but if I right click and copy, or if I click the ‘copy to clipboard’ icon in the browser extension, pasting either gives me nothing, or gives me whatever was on the clipboard previously. This despite the fact that when I click the ‘copy to clipboard’ icon I get a green banner popup that says ‘Password copied’ every time.

I found this thread here Clipboard works unreliably which seems to be the same issue using a different password manager but there was no solution mentioned there. In that thread they seemed to point to the site or browser itself as the issue but I have both laptops setup side by side and for the same websites, the same Browser version, and the same password manager extension version the laptop running fully updated Manjaro XFCE works consistently and correctly and the one running fully updated Manjaro Plasma Plasma does not.

I have found that if I spam click the ‘copy to clipboard’ about 10 times it is almost always on the clipboard and usable, but this isn’t a reasonable solution.

Any ideas what else I could check in my configuration to get the clipboard to function correctly?

Hmm - I not sure if I can reproduce it, mostly because I don’t use BitWarden.

There is no configuration I know of which address clipboard interaction to ensure the clipboard actually contain the expected value.

I happen to have some small insight into the world of interacting with content and getting a text into the clipboard.

There is an internal browser object navigator.clipboard and a writeText method to write content to the clipboard, this is often used to manipulate the clipboard.

The browsers I have tested as part of my work in that area all responds correct to this functionality.

I cannot say what happens between the browser and Plasma - but as I use Plasma (Wayland) and I have zero issues with this - using Proton Pass - somewhat same functionality - click a text to have written to clipboard then paste it in a text field - all work as expected.

I could think that xdg-desktop-portal-kde play a part - or the plasma-browser-integration package play a part - but I am guessing here.

You could try removing the plasma-browser-integration package - log out and login - see if that changes anything.

I think there is a setting in my Proton Pass that offers to clear the clipboard after 2 minutes (adjustable 15 secs or 1 minute) - perhaps look for something similar in BitWarden?

Hi @Kocherjj,

As far as I’m aware Xfce uses X while Plasma has defaulted to Wayland some time ago. XWayland should let everything run, but I’m guessing there is an issue with your copying.

I don’t know which browser you use, but it sounds like it might still be using Xorg (XWayland). On plasma I suggest you adjut the permissions for the applications as this:

https://i.imgur.com/wOwg5Ha.png

Hope this helps!

There definitely is some weirdness going on with the Plasma clipboard on Wayland — I’ve been seeing bizarre behavior for almost two years now — but I believe it’s probably just a persistent bug, due to the differences between X11 and Wayland.

1 Like