Bug 500366 - Auto-copied screenshot appear in clipboard but can't be pasted into apps until manually copied, or clipboard history is re-arranged
Summary: Auto-copied screenshot appear in clipboard but can't be pasted into apps unti...
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.3.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: wayland-only
: 501884 506781 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-19 03:21 UTC by Konstantin
Modified: 2025-12-10 05:19 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
vid (1.24 MB, video/mp4)
2025-02-19 03:21 UTC, Konstantin
Details
Scr1 (84.43 KB, image/png)
2025-02-24 21:59 UTC, Konstantin
Details
Scr2 (99.62 KB, image/png)
2025-02-24 21:59 UTC, Konstantin
Details
Scr (112.55 KB, image/png)
2025-06-05 18:36 UTC, Konstantin
Details
Visual demonstration of the issue. (488.39 KB, image/png)
2025-12-09 22:39 UTC, NitramO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2025-02-19 03:21:26 UTC
Created attachment 178562 [details]
vid

The problem is when creating a screenshot in the Spectacle. When I take a screenshot using Spectacle in Moonlight or in other applications using Ctrl+C, the resulting screenshot cannot be inserted anywhere.

You have to take the screenshot again (Ctrl+C) and then you can paste it. Or you need to select something else in the buffer history, and then the screenshot is taken, and then it also works.

For more information, see the video.
1) I take a screenshot.
2) I'm trying to insert it into PureRef and nothing works. It doesn't matter where I paste it, PureRef or another window where I can paste the copied image.
3) I press Win + V and select another item, and then again the screenshot that I took in the Spectacle.
4) I press Ctrl+V and it works.

After these actions, the screenshots work (Ctrl+V inserts the screenshot) the first time. But after a while, if I want to take a screenshot, then I need to repeat what I described above and it works again.
Comment 1 FluxRM 2025-02-19 04:44:07 UTC
Faced with the same problem. When creating a screenshot, it cannot be inserted into other applications.
Comment 2 Noah Davis 2025-02-19 15:59:18 UTC
This seems similar to bug 485096, but I see that you are using a version that should have the fix (fixed in 24.08.1). Unfortunately, I cannot reproduce the bug.

Are you on Wayland or X11? If you are on Wayland, what is the output of `wl-paste -l` after copying and while Spectacle is still open?

While Spectacle is still open, can you paste into a web browser like Firefox or Chromium? Can you paste into a Qt/KDE app like KolourPaint or Krita or a GTK app like GIMP?
Comment 3 Noah Davis 2025-02-19 16:49:35 UTC
The X11 equivalent command should be `xclip -selection clipboard -o -t TARGETS`
Comment 4 Konstantin 2025-02-20 03:22:25 UTC
I don't open the Spectacle, I take a screenshot of the selected area using the Ctrl+PrtScr keys (I assigned them in the settings). I select the area of the screen I need and press Ctrl+C and the image itself is in the buffer, but for some reason it is not inserted into any window.

Most of the time, the problem occurs when I take a screenshot in Moonlight.

I use Wayland.

>text/html
>chromium/x-source-url
>STRING
>text/plain;charset=utf-8
>TEXT
>UTF8_STRING
>text/plain
>text/plain;charset=utf-8
Comment 5 Konstantin 2025-02-20 03:25:56 UTC
> While Spectacle is still open, can you paste into a web browser like Firefox
> or Chromium? Can you paste into a Qt/KDE app like KolourPaint or Krita or a
> GTK app like GIMP?

Unfortunately, it is not possible to insert into any of the windows until I take a second screenshot or follow the steps described above.

Для команды, которую вы посоветовали я установил wl-clipboard (до этого у меня его не было, он обязателен?).
Comment 6 Nate Graham 2025-02-24 21:41:59 UTC
Feels like it's a Klipper bug if the screenshot can't be pasted until something else first takes it place at the top of the list and then moves back.

When this happens, are you able to paste the screenshot into a Dolphin window or the desktop?

In other words, is the problem only seen when trying to paste the screenshot into this specific thing you're trying to paste it into in your screen recording? (which is helpful, thanks)
Comment 7 FluxRM 2025-02-24 21:48:17 UTC
I have the same problem. Arch Linux, Wayland
Comment 8 Konstantin 2025-02-24 21:48:59 UTC
(In reply to Nate Graham from comment #6)
> Feels like it's a Klipper bug if the screenshot can't be pasted until
> something else first takes it place at the top of the list and then moves
> back.
> 
> When this happens, are you able to paste the screenshot into a Dolphin
> window or the desktop?
> 
> In other words, is the problem only seen when trying to paste the screenshot
> into this specific thing you're trying to paste it into in your screen
> recording? (which is helpful, thanks)

I create a screenshot with Ctrl+C and only the image is copied, not the file. When a bug occurs, it cannot be inserted into any application. PureRef, any graphic editor, browser. I can't paste anywhere at all until I select something else in the clipboard and select the screenshot again.
Comment 9 Nate Graham 2025-02-24 21:51:40 UTC
How about if you paste into Dolphin or the Plasma desktop, as I asked before? Does that work before you re-arrange the items in the history popup?
Comment 10 Konstantin 2025-02-24 21:59:07 UTC
(In reply to Nate Graham from comment #9)
> How about if you paste into Dolphin or the Plasma desktop, as I asked
> before? Does that work before you re-arrange the items in the history popup?

I am attaching 2 screenshots. On the first bug, there is also an inscription on top of the folder. On the second one, I switched the clipboard to another point and back, as already shown in the video, and a dialog box appears.

When there is a bug, the dialog box does not appear.
Comment 11 Konstantin 2025-02-24 21:59:25 UTC
Created attachment 178842 [details]
Scr1
Comment 12 Konstantin 2025-02-24 21:59:42 UTC
Created attachment 178843 [details]
Scr2
Comment 13 Nate Graham 2025-02-24 22:01:55 UTC
Thank you. It does seem like Klipper is at fault; moving over there.
Comment 14 Konstantin 2025-02-24 22:03:29 UTC
(In reply to Nate Graham from comment #13)
> Thank you. It does seem like Klipper is at fault; moving over there.

Perhaps, I do not know)
Comment 15 Fushan Wen 2025-02-27 03:34:23 UTC
Cannot reproduce
Comment 16 Fushan Wen 2025-02-27 03:34:36 UTC
on X11 btw
Comment 17 Fushan Wen 2025-02-27 03:41:37 UTC
Can reproduce without Klipper, moving back to Spectacle.
Comment 18 Konstantin 2025-02-27 05:42:28 UTC
(In reply to Fushan Wen from comment #16)
> on X11 btw

I wrote above that I use wayland. The problem occurs on two computers and a laptop. Install Moonlight, connect to Sunshine, and take a screenshot. The problem does not occur every time, but very often.
Comment 19 John Kizer 2025-04-09 16:43:44 UTC
*** Bug 501884 has been marked as a duplicate of this bug. ***
Comment 20 Konstantin 2025-04-09 16:51:58 UTC
Unfortunately, now there is the same problem with the text. It does not paste the copied text.
Comment 21 Konstantin 2025-06-02 10:53:20 UTC
The situation has become even worse. Now the text has the same problem. Sometimes you need to do the same thing when trying to insert text. And sometimes it doesn't help, I click on different lines in the clipboard history and the desired text is not inserted. It just doesn't happen.
Comment 22 FluxRM 2025-06-04 01:57:28 UTC
(In reply to Konstantin from comment #21)
> The situation has become even worse. Now the text has the same problem.
> Sometimes you need to do the same thing when trying to insert text. And
> sometimes it doesn't help, I click on different lines in the clipboard
> history and the desired text is not inserted. It just doesn't happen.

Confirm. Something strange is happening with the clipboard. I do as you described above and sometimes its contents are not inserted.
Comment 23 Nate Graham 2025-06-04 16:18:15 UTC
This issue has been fixed in Plasma 6.4.
Comment 24 Nate Graham 2025-06-04 17:29:13 UTC
Quick question: are people experiencing this issue using the "Keep the selection and clipboard the same" setting?
Comment 25 Liarus1001 2025-06-04 18:15:21 UTC
(In reply to Nate Graham from comment #24)
> Quick question: are people experiencing this issue using the "Keep the
> selection and clipboard the same" setting?

Where is that setting ? i cannot find said setting anywhere within spectacle, running Version 6.3.5
Comment 26 Nate Graham 2025-06-04 18:19:37 UTC
It's a system setting. Clipboard system tray item > configure
Comment 27 Liarus1001 2025-06-04 18:22:47 UTC
(In reply to Nate Graham from comment #26)
> It's a system setting. Clipboard system tray item > configure

Thank you, i discover new KDE features every day 😄, the setting is disabled for me.
Comment 28 Konstantin 2025-06-05 00:07:31 UTC
(In reply to Nate Graham from comment #26)
> It's a system setting. Clipboard system tray item > configure

I went into the settings, but I still couldn't find this feature. In the system parameters, only KDE Connect is displayed for the "Clipboard" query.

My language is not English, can you tell me in more detail where the option is located?
Comment 29 Nate Graham 2025-06-05 17:05:50 UTC
It's the second checkbox.
Comment 30 Liarus1001 2025-06-05 17:15:04 UTC
(In reply to Konstantin from comment #28)
> (In reply to Nate Graham from comment #26)
> > It's a system setting. Clipboard system tray item > configure
> 
> I went into the settings, but I still couldn't find this feature. In the
> system parameters, only KDE Connect is displayed for the "Clipboard" query.
> 
> My language is not English, can you tell me in more detail where the option
> is located?

In the ray icon spot, right click the clipboard (📋) icon, you should see the clipboard settings in there
Comment 31 Konstantin 2025-06-05 18:35:49 UTC
(In reply to Liarus1001 from comment #30)
> (В ответ Константину из комментария №28 )
> > (В ответ на комментарий Nate Graham № 26 ) 
> > > Это системная настройка. Элемент системного трея «Буфер обмена» > настроить 
> > 
> > Я зашел в настройки, но так и не смог найти эту функцию. В 
> системных параметрах для запроса «Буфер обмена» отображается только KDE
> Connect. 
> > 
> > Мой язык не английский, можете ли вы подробнее рассказать, где 
> находится эта опция?
> 
> В области значка луча щелкните правой кнопкой мыши значок буфера обмена
> (📋), вы должны увидеть настройки буфера обмена.

Thanks. This is called "in the tray". I found it. But I don't understand this function or not.
Comment 32 Konstantin 2025-06-05 18:36:13 UTC
Created attachment 182054 [details]
Scr
Comment 33 Konstantin 2025-06-05 18:36:49 UTC
(In reply to Nate Graham from comment #29)
> It's the second checkbox.

I've attached a screenshot, is this it?
Comment 34 Nate Graham 2025-06-05 18:37:57 UTC
Yes, that's it.
Comment 35 Liarus1001 2025-07-13 13:20:46 UTC
Hello, i'm still experiencing the same issue even on KDE 6.4.2:

Just like last time, sometimes it works, sometimes it doesn't, but it's the exact same behavhior, as in when it doesn't work i can open the clipboard copy something else, then copy the thing i wanted again, and only then it works.

Operating System: CachyOS Linux 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.6-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 64 GiB of RAM (62.3 GiB usable)
Graphics Processor: AMD Radeon RX 6950 XT
Comment 36 Konstantin 2025-07-13 13:23:41 UTC
Yes. I still have this problem. What she didn't have before. Unfortunately, nothing has changed since I reported it.
Comment 37 madness742 2025-07-13 23:34:28 UTC
I'm also seeing this bug, encountering it almost on a daily basis since I updated to 6.4.2. 

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.5-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 64 GiB of RAM (62,4 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XTX
Comment 38 Konstantin 2025-08-16 22:35:48 UTC
Recently, the problem has become much more common than it was before. Now, almost every time I take a screenshot, it cannot be inserted until I press Win + V and select something else, and then select the screenshot I need again.

And now this problem has appeared when copying text. It is also impossible to paste it into another place after you have copied it.
Comment 39 Liarus1001 2025-11-23 10:34:37 UTC
Still happening to me and a few friends today, seems like Spectacle just generally fails to put the image in the clipboard in many different ways.
Comment 40 Konstantin 2025-11-23 11:17:52 UTC
(In reply to Liarus1001 from comment #39)
> Still happening to me and a few friends today, seems like Spectacle just
> generally fails to put the image in the clipboard in many different ways.

Spectacle has nothing to do with it. This problem appeared probably more than 1-2 years ago and has only gotten worse lately. Because even with copied text, it also occurs.

I'm guessing there's a problem with the clipboard. For some reason, he cannot insert the information copied into it until he performs the actions that I described above.
Comment 41 Konstantin 2025-12-07 13:23:31 UTC
Please fix this issue. Now it doesn't work at all. Even the text is not copied.
Comment 42 Nate Graham 2025-12-09 21:49:10 UTC
*** Bug 506781 has been marked as a duplicate of this bug. ***
Comment 43 Nate Graham 2025-12-09 22:19:35 UTC
I'm not able to reproduce this issue with today's git master of Spectacle and everything else KDE-related.
Comment 44 Konstantin 2025-12-09 22:21:30 UTC
(In reply to Nate Graham from comment #43)
> I'm not able to reproduce this issue with today's git master of Spectacle
> and everything else KDE-related.

I don't have this problem every time, but quite often. Several times a day. Sometimes it happens that she is not there for 2 days, sometimes many times an hour.
Comment 45 NitramO 2025-12-09 22:39:11 UTC
Created attachment 187475 [details]
Visual demonstration of the issue.

(In reply to Nate Graham from comment #42)
> *** Bug 506781 has been marked as a duplicate of this bug. ***

I don't know if it's the same bug, my issue is similar but different since when the screenshot fails and I can't paste it, I don't even see it in the clipboard, but instead I see an empty entry (just like this attached example), when it happens I have to manually click on the "copy" button inside Spectacle, so I've made it a habit to keep Spectacle open every time just in case. But this shouldn't be a permanent workaround for such a bug... Are you sure this is a duplicate?
Comment 46 Konstantin 2025-12-09 23:02:51 UTC
(In reply to Nate Graham from comment #43)
> I'm not able to reproduce this issue with today's git master of Spectacle
> and everything else KDE-related.

This bug is very annoying, especially when, for example, you need to take a screenshot in a game or somewhere else at a certain moment. I'm trying to insert a screenshot, but it doesn't insert anything, and the moment is lost. There are no more opportunities to do it.

So because of this bug, I'm missing important screenshots for myself :-(
Comment 47 Luca76 2025-12-10 05:19:51 UTC
Try this:

1. Chat with Google Chat on Google Chrome
2. With Spectacle do a rectangle (any size) on a portion of chat and copy
3. Paste the image to another chat 
Repeat 1, 2 and 3 multiple times

At 99% of times there is one big probability that copy will not work 

My hardware is a Xeon, with no discrete GPU.