Clipboard doesn't work between Virtual Desktops

Good morning,

I’ve been having a problem for quite a long time, and only yesterday I connected the dots…

It seems that when I use spectacle to copy a rectangular region to the clipboard, I can only subsequently paste it on the same virtual desktop. If I switch to any other desktop, it won’t paste anything. In the systray, I see Klipper “registering” the history - that include the image - but won’t paste it beyond the boundaries of the Virtual Desktop it was snapped on.

Is there something I’m doing wrong? Maybe this is on purpose, and the “image” clipboard is configured somewhere to not be shared accross desktops?

Thank you!

hi, welcome.

there are several settings in both klipper and spectacle that would need to be coordinated for image capture>paste to work properly.

however, i don’t see any reason why it would be restricted to a single virtual desktop, and it is not restricted on my system.

please share your output from kinfo, as well as your kiipper settings on the general tab.

for spectacle, you can set it to copy image to clipboard after taking a screen shot

once klippy has it, you should be able to paste it anywhere that an image is accepted regardless of desktop, in fact you can even open another activity and still paste.

does the clipboard show you the actual image when you look in the system tray or does only show an image icon for the clipboard entry?

Hi there @skyfishgoo and thanks a lot for taking the time.

It’s really like I described - but to answer your questions:

  • Yes - the Klippy icon is in systray.
  • Yes - Spectacle is configured to send to clipboard and it does send to Klippy.
  • When I change desktop, Klippy still shows the image in its list, but I lose the ability to paste.
  • Yes - the clipboard shows the actual image - no broken mime-type icon.

Here is the information you requested, straight out of kinfo

❯ kinfo
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.11-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ Ultra 7 155H
Memory: 16 GiB of RAM (15.2 GiB usable)
Graphics Processor 1: Intel® Arc
Graphics Processor 2: NVIDIA GeForce RTX 4050 Laptop GPU

sounds like a bug then.

when you try to paste while on another desktop, you are trying to paste an image into an image accepting app like kolourepaint or something, right? … not just pasting into kate or a terminal.

Hi @skyfishgoo ,

I apologise, I have been too busy… And latelly realised that in fact, what I thought was the trigger for this bug, must have been completelly coincidental :frowning:

So ignore the noise - changing desktops in fact doesn’t seem to always be the cause. It just happens randomly to work or not work.

But interestingly, almost always in the same application - but I can’t be sure of that either, because it’s the application I use the most so the likellyhood of it happening in it is higher of course…

The application is called Rambox, it’s a glorified “chromium-many-tabs-with-isolated-cookies-blow-up-your-RAM” type of app :slight_smile:

I believe Chromium or Electron based?…