The old method is gone with Plasma 4. Instead go through
kactivitymanagerd. Also, instead of checking at build time for
Q_WS_X11 (gone with Qt4), look at dbus if kactivitymanagerd's
service is registered to determine if the action should be
displayed.
Details
- Reviewers
kde-utils-devel ltoscano - Commits
- R364:379e7016c846: Fix clearing recent usage history
Checked with kactivitymanagerd available/unavailable on dbus.
Successfully removed the history.
Diff Detail
- Repository
- R364 Sweeper
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Question about the "Recent Documents" entries
sweeper.cpp | ||
---|---|---|
155 | What is the scope of this action then? The description seems to overlap with the new "clean applications and documents" (and apparently does not work) |
sweeper.cpp | ||
---|---|---|
155 | Yeah, that is indeed confusing. It clears out ~/.local/share/RecentDocuments (which works here), but apparently isn't used by any Plasma launcher AFAICT, which all seem to use KActitvities. Websites I open via links from KDE Applications in Firefox appear in ../RecentDocuments for example, but don't appear under Recent Documents in the launchers. |
@ivan , can you help here? Do you know if Recentdocuments is still relevant somewhere, or was totally replaced by the interface from kactivities, or is still in transition?
privacyfunctions.cpp | ||
---|---|---|
248 | it seems the method is called ClearRecentApplicationAction, tough this would nuke all usage stats on every kind of documents as well.. is this the intended behavior? |
Confirmed; recent applications are cleaned from the application launcher with this patch.
(unrelated, but before I forget: the cleanup of the clipboard works only with klipper, but not with the now more widespread plasma applet; maybe it should be enabled only if the klipper dbus interface is found?).