Bug 292236

Summary: copied text is not saved after window closed
Product: [Unmaintained] klipper Reporter: illumilore <illumilore>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: major CC: andy.poe123, flying-sheep, hrvoje.senjan, mrboese, pepko94, simonandric5
Priority: NOR    
Version: 5.15.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: demonstration

Description illumilore 2012-01-22 22:30:38 UTC
Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

In dolphin, after copying some text from the location bar with ctrl-c, and then closing the window, the copied text is not saved.

Reproducible: Always

Steps to Reproduce:
na

Actual Results:  
na

Expected Results:  
na

na
Comment 1 Christoph Feck 2012-01-23 11:51:08 UTC
Works here. Is Klipper running?
Comment 2 illumilore 2012-01-24 00:20:10 UTC
Yes, clipper is showing up in the system tray, and the copied text is still present in klipper from the system tray after the window closes, but ctrl-v still does nothing and the paste function is grayed out when right clicking in a text field in something else.
Comment 3 Jekyll Wu 2012-12-01 19:41:51 UTC
Can't reproduce. Feel free to reopen if this still happens in 4.9.3 or later.
Comment 4 illumilore 2013-02-07 02:49:15 UTC
This is completely reproducible in 4.10 for me, although I can only reproduce it on one of two kde systems that I tried.
Comment 5 Philipp A. 2014-11-07 10:45:38 UTC
the old klipper had a feature to turn this off, but the new one hasn’t.

confirming for plasma 5/kf5
Comment 6 Martin Flöser 2014-11-07 10:52:51 UTC
(In reply to Phil Schaf from comment #5)
> the old klipper had a feature to turn this off, but the new one hasn’t.

of course it has. There were no features removed.
Comment 7 Philipp A. 2014-11-07 10:59:38 UTC
then it doesn’t work anymore.

i have the “prevent empty clipboard” option checked, but upon copying something and then closing the application i pressed ctrl+c in, i can’t paste the text anymore.

i have to select another past clipboard entry and the the one i want again to make it active, i.e.:

i copy “foo” somewhere.
i copy “bar” in kate.
i close kate.
i can’t paste anything, the clipboard is empty.
i click on “bar” in klipper.
i still can’t paste anything.
i click on “foo”, then “bar” again in klipper.
i can now paste “bar” without re-opening and re-copying, but it’s a pain.
Comment 8 Hrvoje Senjan 2014-12-11 02:23:50 UTC
dup of bug 329174 ?
Comment 9 Martin Flöser 2014-12-11 08:05:23 UTC
(In reply to Hrvoje Senjan from comment #8)
> dup of bug 329174 ?

at least not the affected 4.x version. The affected 5.x version: probably yes
Comment 10 Ruman Gerst 2015-05-03 22:41:48 UTC
Seems to be caused by "Clipboard Settings" > "Selection and Clipboard" > "Only text selection"

[translated from german]
Plasma 5.3, Kubuntu 15.04 Backports

The option is turned on by default. If I disable it, it seems to work until I re-enable it.
Comment 11 Andy 2017-01-26 08:09:17 UTC
Is this fixed? I have noticed this few times recently when copying a text from http://buywebsitetrafficreviews.org/ and closing window.
Comment 12 Andy 2017-01-26 13:43:10 UTC
Is this fixed? I have noticed this few times recently when copying a text from http://buywebsitetrafficreviews.org/ and closing window.
Comment 13 retired 2017-06-01 19:40:13 UTC
*** Bug 378969 has been marked as a duplicate of this bug. ***
Comment 14 retired 2019-05-30 17:53:03 UTC
I believe that this bug should have higher priority under KDE "Usability & Productivity" initiative. It may be confusing to new users, and it's a quirk which requires "learning around".

Take such scenario for example:
User encounters a bug and wants to report it. He/she then proceeds to open up kinfocenter to copy relevant system information, then after clicking "copy to clipboard in english" he/she proceeds to close that window.
Next that person goes to his/her browser to paste what has been copied.
Surprise, it doesn't work, and assuming that this person is not using keyboard shortcuts, "paste" item on right click context menu is greyed out.
At this point manual action of selecting relevant snippet from klipper is needed.
Comment 15 Nate Graham 2019-05-30 18:07:29 UTC
Please do not assign bugs to other people.

It's not clear what the bug here actually is. The case specified in the original bug works fine for me. In general, if closing the window clears the copied text, then that means it was actually in the internal X11 clipboard rather than in Klipper (this limitation in X11 is one of the reasons for Klipper's existence). This would point to Klipper being misconfigured or not running.

If anyone can reproduce the issue, please add a comment that includes detailed Steps To Reproduce.

https://community.kde.org/Get_Involved/Bug_Reporting#Steps_to_Reproduce
Comment 16 retired 2019-05-30 20:41:35 UTC
Created attachment 120418 [details]
demonstration

Apologies for assigning you, I just was curious if you were interested in investigating this issue further.

My bug was was marked as duplicate almost two years ago, it's a bit different than that one.
Text gets copied and can be pasted, as long as source window is open. If it is closed in the mean time then clipboard "loses focus", item is still in klipper but there is nothing to paste.

Allow me to demonstrate.
Comment 17 retired 2019-05-30 20:44:10 UTC
On further investigation, I was the one who marked it as a duplicate. Maybe I was wrong on doing so.
Comment 18 Christoph Feck 2019-06-04 22:06:34 UTC
Closing this one, because you reopened the other ticket.