D5677: Fix clearing recent usage history

Ivan Čukić noreply at phabricator.kde.org
Sun Jul 2 11:05:52 UTC 2017


ivan added inline comments.

INLINE COMMENTS

> privacyfunctions.cpp:231
> +        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.

REPOSITORY
  R364 Sweeper

REVISION DETAIL
  https://phabricator.kde.org/D5677

To: heikobecker, kde-utils-devel
Cc: mart, ivan, ltoscano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20170702/a06e5882/attachment.html>


More information about the Kde-utils-devel mailing list