Bug 229052 - Clipboard emptied after quitting an app
Summary: Clipboard emptied after quitting an app
Status: RESOLVED FIXED
Alias: None
Product: klipper
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Esben Mose Hansen
URL:
Keywords:
: 235344 236765 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-01 18:56 UTC by markuss
Modified: 2010-10-04 20:05 UTC (History)
7 users (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 markuss 2010-03-01 18:56:27 UTC
Version:            (using KDE 4.4.0)
OS:                Linux

This bug seems to affect only non-Qt apps.

Steps to reproduce:
1. Open a non-Qt app (I tried Firefox and OpenOffice).
2. Select text and copy it.
3. Close the app and try to past the text into another app.

Weird thing is: The text appears in Klipper's tray menu. I have to select it first to be able to paste it again.
I tried enabling and disabling the "Prevent empty clipboard" option, but without any success.

This bug might be related to Bug 228776. It might even be a dupe.
I'm not sure.
Comment 1 Esben Mose Hansen 2010-03-01 19:09:10 UTC
I believe this is a QT bug, I'll need to whip up a patch when I can.
Comment 2 Ivan Andrianov 2010-04-10 14:37:12 UTC
I have this problem with Qt applications too.
Comment 3 Christoph Feck 2010-05-08 22:05:27 UTC
*** Bug 236765 has been marked as a duplicate of this bug. ***
Comment 4 Lubos Lunak 2010-05-19 15:39:45 UTC
*** Bug 235344 has been marked as a duplicate of this bug. ***
Comment 5 Lubos Lunak 2010-05-19 15:53:57 UTC
SVN commit 1128514 by lunakl:

Q_WS_X11 needs qglobal.h
BUG: 229052



 M  +1 -0      klipper.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1128514
Comment 6 Clara Gnos 2010-06-09 14:39:09 UTC
You forgot to backport it to the current stable branch
Comment 7 Clara Gnos 2010-06-09 14:48:30 UTC
And it is still there for non-qt apps. So please repoen the bug or I will recreate a new one
Comment 8 Clara Gnos 2010-06-09 14:50:31 UTC
And then the xsel is used instead of the xclipboard content when an application closes and the last thing I have done is not copying but selecting (so both buffers have the same content after closing the app instead of different as it should be).
Comment 9 Clara Gnos 2010-06-09 14:51:57 UTC
And for example when I open firefox, copy text, select some other text it is possible to insert both buffers independent in kate. But when I close firefox then both buffers are empty.
Comment 10 Unknown 2010-06-10 19:41:23 UTC
This bug is not fixed completely. Still present on KDE 4.5 beta 2.
After closing a Qt app works fine now, but closing Firefox still has the same problem.

Please reopen.
Comment 11 Clara Gnos 2010-06-10 19:44:50 UTC
Szőts Ákos wrote:
> https://bugs.kde.org/show_bug.cgi?id=229052
> 
> 
> Szőts Ákos <szotsaki@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - CC|                            |szotsaki@gmail.com
> 
> 
> 
> 
> --- Comment #10 from Szőts Ákos <szotsaki gmail com>  2010-06-10 19:41:23
> --- This bug is not fixed completely. Still present on KDE 4.5 beta 2.
> After closing a Qt app works fine now, but closing Firefox still has the
> same problem.
> 
> Please reopen.

I've alread reopened it as 241242
Comment 12 Philipp A. 2010-10-04 17:59:45 UTC
am i right that the behavior of emptying the clipboard after application close is intended if the “avoid empty clipboard” option in klipper is disabled?

if not, what does this option do?
Comment 13 Esben Mose Hansen 2010-10-04 20:05:34 UTC
@12 you are right, and yes, it is broken. Sorry.