Bug 264283 - klipper should save history not only on normal exit
Summary: klipper should save history not only on normal exit
Status: RESOLVED DUPLICATE of bug 152039
Alias: None
Product: klipper
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Esben Mose Hansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 19:51 UTC by anton
Modified: 2011-12-24 18:10 UTC (History)
1 user (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 anton 2011-01-25 19:51:57 UTC
Version:           unspecified (using KDE 4.5.95) 
OS:                Linux

Klipper only saves history when the program is exited correctly. All session history would be lost if klipper was crashed, killed or system was powered off ubnormally (eg with alt+sysrq+b).


My usecase when this situation makes sense - I had problems with KML - the system could get freezed at any random moment. Typing long message in some web for in web browser was just dangerous - all typed text could be lost if system would freeze before the reboot. As soon as web form does not have ctrl+s option to quickly save text while typing before submitting the form, I wanted to use klipper as a good and quick workaround alternative for that - just ctrl+a, ctrl+c and the whole text goes to clipboard history, which theoretically should be available even when the system reboots. But on practice this was not so. The system freezes, reboot it with alt+sysrq+b (or just poweroff), login again and see that klipper did not save copied history for the previous session and all typed text was lost along with browser window, and klipper failed to save me from such situation, though I naturally assumed it could do it. I know, that klipper history is not a good place to store important text data, but this is small use-case for the improvement, which could make it better, if it saved history more often - not only when exit correctly.

Reproducible: Always

Steps to Reproduce:
1. Copy some text to klipper
2. Make sure the text is in klipper history
3. killall klipper
4. Start klipper again

Actual Results:  
copied text would not appear in the history

Expected Results:  
it could be better, if copied text would not appear in the history even when the program ended ubnormally
Comment 1 anton 2011-01-25 19:54:48 UTC
sorry, did not check for typos before submitting

>problems with KML
problems with KMS

>freeze before the reboot
freeze before the form is submitted
Comment 2 Jekyll Wu 2011-11-06 21:04:08 UTC
This sounds similar to or related with bug 269931. And the history is also saved when klipper is closed through 'killall klipper'(at least for me).
Comment 3 anton 2011-11-07 08:50:18 UTC
kde 4.7.2. - "killall klipper" would still make klipper lose recent items (the whole history is not lost - only the new items which appeared during latest klipper session).
Comment 4 Jekyll Wu 2011-11-09 21:47:21 UTC
(In reply to comment #3)
Ahh, you are right. 

So, to solve your problem, klipper needs to save the history ASAP. I think that is basically the same as bug 152039.
Comment 5 anton 2011-11-09 21:50:57 UTC
>So, to solve your problem, klipper needs to save the history ASAP.

yes, exactly

>I think that is basically the same as bug 152039.

yes, this is the same bug
Comment 6 Jekyll Wu 2011-12-24 18:10:04 UTC

*** This bug has been marked as a duplicate of bug 152039 ***