Bug 237033 - 'recently used' is not preserved through sessions
Summary: 'recently used' is not preserved through sessions
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-kickoff (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 237714 245161 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-09 23:30 UTC by Silver Salonen
Modified: 2012-05-03 00:21 UTC (History)
8 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 Silver Salonen 2010-05-09 23:30:26 UTC
Version:            (using KDE 4.4.3)
Installed from:    openSUSE RPMs

It seems that programs and documents in 'recently used' sections are reset to some state when I log out and then in again. It is updated within a session correctly, but after restarting I don't have there the documents and programs that were there before restarting, instead the same set of programs and documents is used as it was at the beginning of the previous session.
Comment 1 ahenric 2010-05-24 12:16:32 UTC
Version: KDE 4.4.2
Installed from Kubuntu 10.04LTS

I can confirm this bug as well. The recently used programs do not get saved across sessions.
Comment 2 Jonathan Thomas 2010-05-26 05:59:00 UTC
*** Bug 237714 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas L. 2010-06-15 22:23:47 UTC
i don't reproduce here with kde 4.4.3, is it possible that you udpate your KDE ?
Comment 4 nucleo 2010-06-15 22:31:25 UTC
In KDE 4.4.4 recently used applications are not preserved through sessions.
But recently used documents are preserved.
Comment 5 Francisco González 2010-08-31 13:49:46 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Martin 2010-08-31 20:48:50 UTC
You can mark https://bugs.kde.org/show_bug.cgi?id=245161 a duplicate of this bug, I believe.
Comment 7 Aaron J. Seigo 2010-09-01 00:57:31 UTC
*** Bug 245161 has been marked as a duplicate of this bug. ***
Comment 8 Anne-Marie Mahfouf 2010-09-01 14:22:20 UTC
Can you try the following patch for those who have the sources please?

Index: core/recentapplications.cpp
===================================================================
--- core/recentapplications.cpp (révision 1170559)
+++ core/recentapplications.cpp (copie de travail)
@@ -73,6 +73,7 @@
         }
 
         recentGroup.writeEntry("Applications", recentApplications);
+        recentGroup.config()->sync();
     }
     void addEntry(const QString& id, ServiceInfo& info) {
         // if this service is already in the list then remove the existing
Comment 9 Anne-Marie Mahfouf 2010-09-08 18:29:00 UTC
Anybody likes to try it?
Comment 10 Andreas Fackler 2010-09-09 11:29:51 UTC
Thank you, Anne-Marie!
Your patch solves the problem for me in KDE 4.4.5.

I inserted that line and rebuilt the Debian package plasma-desktop. The menu now correctly remembers the recently used applications from previous sessions.
Comment 11 Anne-Marie Mahfouf 2010-09-09 16:43:09 UTC
SVN commit 1173494 by annma:

make recently used applications saved across sessions
will backport to 4.5 branch
CCBUG=237033


 M  +1 -0      recentapplications.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1173494
Comment 12 Anne-Marie Mahfouf 2010-09-09 17:08:25 UTC
SVN commit 1173503 by annma:

fix Recently Used applications kept between sessions
BUG=237033


 M  +1 -0      recentapplications.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1173503
Comment 13 Martin 2010-09-09 21:07:23 UTC
Recompiled kdebase4-workspace on FreeBSD; test with logging out, logging back in, running kmahjongg, logout, kmahjongg is now in recently used. Repeat with running system settings, after login also in recently used.

-> fix seems to work.

Thanks!
Comment 14 chichipio_wilson 2012-05-03 00:21:39 UTC
I'm experiencing this once again using KDE 4.8.2 (Kubuntu 12.04). It was fine on 11.10 (KDE 4.7.4 I think...).

I would appreciate if someone more knowledgeable could check this to see if it's the same bug rearing its head again, something different that needs to be reported separately or something faulty with my configuration. (I'm not ruling out this last option because Kubuntu has a history of breaking some things after a full distribution upgrade.)

Some extra information that could be important:
- I have it configured to start an empty session each time I log in.
- When rebooting/shutting down the system I don't see anything weird, so I'm assuming that the current session is closing down gracefully.
- kickoffrc appears to be accessed and saved every time I launch a program (its date gets modified). Its contents, however, are always the same.
- Just as with everybody else on this thread, my list does get update during a session. It's only after reboot that I see the same old list as it appears in my kickoffrc.