SUMMARY When the clipboard is empty, copying 2 screenshots one after other using spectacle clears the clipboard. One thing to note here is that the behavior is not reproducible when using Spectacle's notification to copy, it only happens from the spectacle window that has "Copy to Clipboard" button. Not sure if this should go to Spectacle or Clipboard, feel free to put it in the right place. STEPS TO REPRODUCE 1. Clear the clipboard 2. Launch spectacle and take a screenshot 3. After the screenshot is taken, click on "Copy to Clipboard" button. 4. Uncheck "Quit after manual Save or Copy" if it is checked 5. Again copy the screenshot using "Copy to Clipboard" button OBSERVED RESULT Clipboard loses both the screenshots EXPECTED RESULT Clipboard should not be cleared SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.104.0 Qt Version: 5.15.8 Kernel Version: 6.2.9-arch1-1 (64-bit) Graphics Platform: Wayland
Created attachment 157926 [details] Clipboard getting cleared when clicking on "Copy to Clipboard" button twice
Can reproduce. Seems like a Clipboard widget bug. When the history only has that one item in it for the copied image, repeatedly clicking "Copy to clipboard" in Spectacle makes the item disappear and appear again in the history! Weird.
Found another way to reproduce: 1. Clear the clipboard 2. Launch spectacle and take a screenshot 3. After the screenshot is taken, click on "Copy to Clipboard" button. 4. Copy anything (tested with text, file) Observation: Clipboard is cleared
So today I was exploring the clipboard settings and enabled "Always save in history" for "Non-text selection" option. The image disappearing and appearing in the clipboard is fixed.
Actually, I was previously using the setting "Never save in history" for "Non-text selection", as that was the default. So klipper should really ignore the image under this setting? I think this issue can be merged with Bug 457098.
Yup, looks like it. *** This bug has been marked as a duplicate of bug 457098 ***