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.
Is "Klipper" (the KDE clipboard manager app) running ? It should be in the systemtray Thanks
No, it's not.
Have you tried running it and checking this again? Thanks
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.
I wonder if this could be related to bug 197611 / bug 195412 / bug 172963 / bug 85456. Could you check them, please? Thanks
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.
I wonder if this could be related to this Qt issue : bug 199333
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..
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...
(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.