Bug 142882

Summary: clearing the clipboard does not clear the clipboard history
Product: [Applications] klipper Reporter: Olivier Vitrat <ovit.debian>
Component: generalAssignee: Esben Mose Hansen <kde>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Olivier Vitrat 2007-03-12 19:29:34 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages

This has been reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=410123

I think 'clear clipboard' should clear the clipboard history file.
(Currently, the file is only cleared if one empties the clipboard and
 then saves the empty clipboard on program exit.)

Suppose that, after using klipper for some days, user does two things:
 -- clears the clipboard
 -- changes from "save clipboard contents" to "don't save"

Then user's old, already-saved clipboard remains on file at
   ~/.kde/share/apps/klipper/history2.lst
and will happily remain there for months.

This is unlikely to be what the user wanted to achieve.  It's so
unexpected that it should probably be considered a 'normal' bug.
Comment 1 Nicholas Tung 2007-12-12 21:49:15 UTC
particularly not a good idea if people happen to copy passwords. perhaps defaults are the distro's responsibility, but if not, please change it to not save on exit by default.
Comment 2 Esben Mose Hansen 2009-09-21 21:21:57 UTC
SVN commit 1026419 by esben:

Clear on-disk clipboard history when either the user switches from saving history
to not, or when manually clearing history
BUG: 142882

 M  +13 -5     klipper.cpp  
 M  +2 -2      klipper.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1026419
Comment 3 Esben Mose Hansen 2010-01-19 19:50:24 UTC
SVN commit 1077232 by esben:

Clear on-disk clipboard history when either the user switches from saving history to not, or when manually clearing history 
CCBUG: 142882


 M  +12 -6     klipper.cpp  
 M  +2 -2      klipper.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1077232