D5677: Fix clearing recent usage history
noreply at phabricator.kde.org
Sun Jul 2 11:05:52 UTC 2017
ivan added inline comments.
> + QStringLiteral("/ActivityManager/Resources/Scoring"),
> + QStringLiteral("org.kde.ActivityManager.ResourcesScoring"),
> + QStringLiteral("DeleteRecentStats"));
It is not advisable to use KAMD d-bus directly. It is not officially a stable API. You should use the KAStats library instead.
> heikobecker wrote in 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.
You should probably clear both the ~/.local/share/RecentDocuments and the statistics from KAMD.
To: heikobecker, kde-utils-devel
Cc: mart, ivan, ltoscano
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kde-utils-devel