KDE Clipboard not working in Wayland BUG Reported

https://bugs.kde.org/show_bug.cgi?id=500927

Thanks for the response Nate.

I am one of the forum moderators at OpenMandriva and since I am the only one with a bugs.kde.org account, I filed it for everyone.

This is happening for anyone on OpenMandriva running Wayland with Plasma 6. It happens with upgrades and with fresh installs. It happens with default settings. It works fine with X11. The only work around we have found for the time being is to disable the item in the system tray notifications. That allows the clipboard to work, but with no history.

We are aware that this could be completely an OpenMandriva issue and we would gladly work on it, but we do not know where to start. I am not a programmer, but will pass all of this along on our forum.

Thanks,
Wilson Phillips

On Wednesday, March 5th, 2025 at 10:39 AM, Nate Graham bugzilla_noreply@kde.org wrote:

500927 – On OpenMandriva, clipboard history won't hold more than one entry in Wayland

Nate Graham nate@kde.org changed:

What |Removed |Added

Status|REPORTED |NEEDSINFO
Resolution|— |WAITINGFORINFO
CC| |nate@kde.org

— Comment #1 from Nate Graham nate@kde.org —

Have you changed any clipboard settings from their default values?

Does the issue only happen when copying the things you copied to trigger this
issue, or all things you try to copy in all affected software? Can you be
specific about what you’re copying, and in what software?

Does the issue persist in a new clean user account?

–
You are receiving this mail because:
You reported the bug.

It doesn’t seem to matter what is being copied, or from where, or where it is pasted to. You can copy from a file into the terminal, or from the terminal on to the forum page in the browser. You only get one copy and it does not add to the history, so each time you copy and paste, you paste the first and only entry in the history.

Yes, it persists on a clean user account. Even from a fresh install.

Thanks,
Wilson Phillips

500927 – Clipboard history won't hold more than one entry in Wayland

Nate Graham nate@kde.org changed:

What |Removed |Added

Status|REPORTED |NEEDSINFO
Resolution|— |WAITINGFORINFO
CC| |nate@kde.org

— Comment #1 from Nate Graham nate@kde.org —

Have you changed any clipboard settings from their default values?

Does the issue only happen when copying the things you copied to trigger this
issue, or all things you try to copy in all affected software? Can you be
specific about what you’re copying, and in what software?

Does the issue persist in a new clean user account?

–
You are receiving this mail because:
You reported the bug.

I have to suspect the same. Right now, no one has any idea, other than we found the work around of disabling the clipboard. We are running 6.3.2 right now, but this was occurring before the latest update. I don’t know that we change anything from the defaults in the packaging, but when this is posted, the devs can speak up about it.

Any hint as to where we should focus our search?

Thanks,

On Wednesday, March 5th, 2025 at 11:22 AM, Nate Graham bugzilla_noreply@kde.org wrote:

500927 – On OpenMandriva, clipboard history won't hold more than one entry in Wayland

Nate Graham nate@kde.org changed:

What |Removed |Added

Resolution|WAITINGFORINFO |—
Status|NEEDSINFO |REPORTED
Summary|Clipboard history won’t |On OpenMandriva, clipboard
|hold more than one entry in |history won’t hold more
|Wayland |than one entry in Wayland

— Comment #5 from Nate Graham nate@kde.org —

If it’s 100% reproducible for all cases for users of a distro, and nobody else,
that does make me suspect there’s something distro-specific going on. Could be
packaging, or default setup, or something else.

Do any of the OpenMandriva devs have any ideas?

–

So, this is apparently only happening to us here at OpenMandriva. That means our devs have to start digging.

@WilsonPhillips thanks for filing the bug report at kde issues.
I’m going to read it and follow-ups.

1 Like

My guess is there might be a dependency issue.

I emailed Nate to let him know that my bug report could be a duplicate of this one.

https://bugs.kde.org/show_bug.cgi?id=498341

Bernhard Rosenkränzer

2025-03-07 10:14:36 UTC

Hi, OpenMandriva dev here. We aren’t applying any patches to klipper or obviously related bits, so if this is something distro specific, it must be something more subtle, like an interaction with an “unexpected” version of a library or compiler, or a missing optional dependency (I don’t see any complaints in build logs), or something along those lines.

I can also not reproduce the problem exactly as described here, but I do see a variant – in the X11 session, everything works perfectly, while in the Wayland session the clipboard seems to misbehave more or less at random, pasting something older than the most recently cut/pasted bit. With klipper disabled, it works perfectly in the wayland session too.

So far I haven’t seen a pattern to when this happens, but will keep paying attention (and I’ve switched my default session to wayland now, so I should see it more frequently).

At least what I’m seeing might be the same as 498341 – which is more random than what is originally described here.
Wilson: You seem to see this a lot more frequently than I am – what applications are you using when you’re cut&paste-ing?

2025-03-07 15:17:18 UTC

Thanks for the response Bernhard.

As far as I can tell, this appears to be with any/all plasma6 Wayland users. When they select the X11 session, it works perfectly. When they select the Wayland session, klipper will only hold one entry in the history and that is the only entry that can be pasted. Switching sessions is the only change.

It does not seem to matter what programs are being copied from or pasted to. Only the one entry in the klipper history is there. One thing to note, if one copies a line in lets use kate as an example and pastes it in another spot in kate it will work, but still no entry is put into the klipper history. This appears to be the same with all apps. They work as long as you stay in that app, even the terminal works this way, but you cannot paste that into another application. Only the one entry in the klipper history is pasted.

I looked back through the OpenMandriva forum and this appears to have been happening for at least a few months. I am guessing a dependency issue, but I am not a coder and would have no idea where to start, but I was willing to file a bug report. :slight_smile:

i’m on wayland now, after «sudo dnf in wl-clipboard» seems that klipper works.
Please confirm.

2 Likes

Can it be so trivial fix? :grin:
Well let’s see…

I installed Wayland to test this and it did not work for me. I am still limited to one entry in the klipper history.

Here is the list of installed programs on my PC. I got this by running

dnf list --installed

Plasma6 Wayland klipper history fails

If we could get a few that fail and a few that work, the lists can be compared and maybe, just maybe we can find the issue.

Sorry, my bad, I thought I was in wayland but actually it was x11. confirm that klipper does not work in wayland

Does klipper work in Wayland for anyone? If so, we need a list to compare.

dnf list --installed

Here’s the list.
list-installed.txt (360.9 KB)

It seems that “Ctrl+Ins/Shift+Ins” work better than “Ctrl+c/Ctrl+v” Is there a conflict between keyboard shortcuts?

I add that: if after «ctrl+c» you press «meta» the selection is loaded into klipper and works.
There is some confusion in the system settings.

1 Like

@bruno I added that to the bug report.

I only had a couple of minutes to check, so I used Floorp installed via flatpak. The only thing that would paste was something I copied yesterday. This happened both with ctrl+v and right click → paste

Edit: Floorp is a fork of Firefox