Bug 464903 - Non-image clipboard content gets erased when image is pasted to clipboard while using default setting to not remember images in history
Summary: Non-image clipboard content gets erased when image is pasted to clipboard whi...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 5.26.90
Platform: Arch Linux Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-27 16:03 UTC by Phoenix Awakened
Modified: 2023-02-14 17:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phoenix Awakened 2023-01-27 16:03:43 UTC
SUMMARY

Clipboard content gets automatically erased, when image is pasted to clipboard.


STEPS TO REPRODUCE
1. Copy some text to Clipboard. 
2. Take a screenshot and paste it to clipboard.
3. Now again copy some text.
4. All Clipboard content is erased.


OBSERVED RESULT

No clipboard content.

EXPECTED RESULT

Availability of Clipboard contents.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:  CachyOS

KDE Plasma Version: 5.26.90

KDE Frameworks Version: 5.102.0

Qt Version: 5.15.8


ADDITIONAL INFORMATION

The bug persists even with default settings.
Comment 1 Nate Graham 2023-01-27 20:02:25 UTC
When you say "All Clipboard content is erased", did you mean that the image was erased? Or was other text content erased too?

If it was just the image, does it help to change the value of "Non-Text selection" to "Always Save in History" or "Only when explicitly copied?"
Comment 2 Phoenix Awakened 2023-01-28 06:54:48 UTC
(In reply to Nate Graham from comment #1)
> When you say "All Clipboard content is erased", did you mean that the image
> was erased? Or was other text content erased too?

Yes everything is erased.

To verify its occurrence just now, firstly I took a screenshot of the desktop. Then, copied some text and all of sudden clipboard disappeared from the panel along with its content.

One important point which I want to mention is, this error only happens if the first copied content is image via a screenshot only.  If already something else is copied, then this does not occurs.

So, if you take a screenshot and keep it in clipboard, and then copying text removes the entire clipboard.
Comment 3 Nate Graham 2023-02-02 20:15:50 UTC
But does "everything" consist of

"just the image"

or

"just the image plus other text in the clipboard that was previously copied before you copied the image"

?
Comment 4 Phoenix Awakened 2023-02-03 14:17:55 UTC
All of them were getting erased.


But, I had pondered about you said last time for configuring the Clipboard settings.

Therefore, I did the following 2 points as per your previous suggestion : 

1. Text selection always save in history
2. Non-text selection always save in history.

By enabling both of these altogether, the issue was fixed.

But I wonder, why those options are not enabled by default ?
Comment 5 Nate Graham 2023-02-05 04:06:57 UTC
Can you attach your /home/nate/.config/klipperrc file when you're using the settings that you use to reproduce the bug?
Comment 6 Phoenix Awakened 2023-02-14 15:51:23 UTC
(In reply to Nate Graham from comment #5)
> Can you attach your /home/nate/.config/klipperrc file when you're using the
> settings that you use to reproduce the bug?

Sorry for responding late. I was out of station, for about a week for examination purposes, hence I didn't logged in to the PC. As soon as I opened the PC, I came here.

See this : 

[General]
IgnoreImages=true
Version=5.26.90
Comment 7 Phoenix Awakened 2023-02-14 15:52:31 UTC
Also. If I select the option to "reset to default" , the bug was producible back then...
Comment 8 Nate Graham 2023-02-14 17:59:22 UTC
Thanks!