Bug 189808 - Some KDE apps void clipboard on exit
Summary: Some KDE apps void clipboard on exit
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.2.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-16 16:44 UTC by Alexey Chernov
Modified: 2011-11-11 16:02 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2009-04-16 16:44:12 UTC
Version:            (using KDE 4.2.2)
Compiler:          GCC 4.3.2 Target: x86_64-unknown-linux-gnu Configured with:  ../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran,objc,treelang --disable-multilib --enable-c99 --enable-long-long Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

I've noticed that several KDE applications (i've noticed it for at least KWrite and Kate) empty the clipboard on exit. Also, I've noticed that it's generally for saved documents (for unsaved clipboard sometimes works). To reproduce:
1. Start some previously saved document in, for instance, KWrite.
2. Select some text and Ctrl+C it.
3. Close KWrite.
4. Open it once again.
5. Try to paste the text. You can't.

I've found it not 100% reproducible, so maybe it will need several times to reproduce.
Comment 1 Dario Andres 2009-04-17 17:14:35 UTC
Is "Klipper" (the KDE clipboard manager app) running ? It should be in the systemtray
Thanks
Comment 2 Alexey Chernov 2009-04-17 19:27:41 UTC
No, it's not.
Comment 3 Dario Andres 2009-06-26 16:18:50 UTC
Have you tried running it and checking this again? Thanks
Comment 4 Alexey Chernov 2009-06-26 20:35:10 UTC
Yes, it is reproducible for 4.2.4, but I have so old qt-copy (about a month ago) and plan to upgrade to 4.5.2 tonight, so I'll try this tomorrow on 4.5.2 and post the result here.
Comment 5 Dario Andres 2009-06-28 00:01:06 UTC
I wonder if this could be related to bug 197611 / bug 195412 / bug 172963 / bug 85456. Could you check them, please?
Thanks
Comment 6 Alexey Chernov 2009-06-29 13:29:25 UTC
I updated Qt last night, but unfortunately the bug is still there.

Also I've checked the bugs you've mentioned. I think they all are unlikely the same, because they are about Klipper, but i've closed Klipper. In comment #1 you asked about Klipper, I turn it on and this bug went off, but then I closed Klipper because it's a little bit conflicting with Eclipse (now I think I should post another bug report about it). And without Klipper this bug is there again.

Also, I think it's useful, this bug isn't for the whole KDE4 because in 4.0 and 4.1 it wasn't there as I remember.
Comment 7 Dario Andres 2009-07-24 16:58:32 UTC
I wonder if this could be related to this Qt issue : bug 199333
Comment 8 Alexey Chernov 2009-07-24 20:28:14 UTC
Hmmm, I can't say definitely... When I try to paste in this case, it don't paste anything but in that bug it pastes some junk. But who knows, maybe the problems have the same roots..
Comment 9 Frank Niethardt 2010-05-23 12:30:51 UTC
I have the same problem, Archlinux, KDEmod 4.4.3.

I just wrote an email in Kontact, opened Konqueror, found a page, copied the url, closed Konqueror and wanted to paste in Kontact, but the url was gone...

I could to the same thing as Konqueror was still open...

I encounterd this bug with pasting text from a kate session as well. Close kate before pasting and the text is vanished from clipboard.

Klipper is running...
Comment 10 Jekyll Wu 2011-11-11 16:02:23 UTC
(In reply to comment #6)
> In comment #1 you asked about Klipper, I turn it on and this bug went off... And without Klipper this bug is there again.

For the case when klipper is not running: 

I think it is the expected behavior that the clipboard becomes empty after the application holding the clipboard exits. That feels annoying, but that is just the way how X11 clipboard works, AFAIK.

(In reply to comment #9)
> ...Klipper is running...

For the case when klipper is running: 

Did you enable the "prevent empty clipboard" option in klipper? If already enabled, That sounds like a bug of klipper. If that problem still happens in recent version of KDE, please open another report against klipper.