qdbus kactivities - delete all stats

Thomas Weissel valueerror at gmail.com
Sat Nov 17 17:11:56 GMT 2018


hello everybody.
i'm currently refining my digital-exam environment based on kde plasma for
schools and could use some help.


i need to be able to delete all recent documents from all applications via
qdbus
i know i can do that from systemsettings > desktop behaviour > activities
but it needs to be automated

~/.local/share/kactivitymanagerd/resources$ sqlite3 -header database
select * from ResourceScoreCache;

gives me all entries...
[...]
95dec76c-3e71-47af-a064-cbd5a50957de|org.kde.kate|/home/me/CMakeLists.txt|0|0.0|1542473179|1542473179
[...]

DeleteStatsForResource(QString activity, QString client, QString resource)

qdbus org.kde.ActivityManager /ActivityManager/Resources/Scoring
org.kde.ActivityManager.ResourcesScoring.DeleteStatsForResource
95dec76c-3e71-47af-a064-cbd5a50957de org.kde.kate "/home/me/CMakeLists.txt"

removes ONE entry...

DeleteEarlierStats(QString activity, int months)
qdbus org.kde.ActivityManager /ActivityManager/Resources/Scoring
org.kde.ActivityManager.ResourcesScoring.DeleteEarlierStats
95dec76c-3e71-47af-a064-cbd5a50957de
12

does not do anything ?


how can i remove ALL entries from the current activity ?  or even better
from ALL activities at once ?
i tried diffferent forms of wildcards but without any luck :-/

thank you very much for everything that helps :-)
greetings
thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20181117/57e5d848/attachment-0001.html>


More information about the Plasma-devel mailing list