| Summary: | Krunner's "Recent documents" results still there after "forgetting" recent docs in appdashboard | ||
|---|---|---|---|
| Product: | [Plasma] krunner | Reporter: | Szczepan Hołyszewski <rulatir> |
| Component: | general | Assignee: | Kai Uwe Broulik <kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | alexander.lohnau, hein, nate, piedro.kulman |
| Priority: | NOR | ||
| Version First Reported In: | 5.7.1 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/c1b97eab1f6b7f7ac056425b92c47b6228b9cdc5 | Version Fixed/Implemented In: | 5.20 |
| Sentry Crash Report: | |||
|
Description
Szczepan Hołyszewski
2016-07-19 10:47:34 UTC
Eike, is there any additional step the runner needs to do? It uses KRecentDocument::recentDocuments() to get them and updates the internal variable (is caching even needed?) using KDirWatch created/deleted/dirty on KRecentDocument::recentDocumentDirectory(). It doesn't use KActivitiesStats, though. Would porting to it fix that? ^ Yes. Basically KActivitiesStats reads in KRecentDocument::recentDocuments() into its sqlite db, which stuff can be deleted from. Doesn't actually reset KRecentDocument::recentDocuments() but kills the results ... Ok, so I'll migrate it to use KActivitiesStats which should get more precise (activity-related and what not) recent documents also and was something I wanted to do at some point anyway. KActivitiesStats additionally also has other data sources (KActivities hooks all over the place, iirc also some Gnome stuff) so it's probably useful anyway. I think there might be even a bit more of a problem. Also krunner shows documents from folders I excluded beforehand. I do backups for customers, projects and other machines. I exclude these folders from searching and indexing obviously. Krunner still finds stuff that doesn't belong to me. So it seems that the settings for indexing and excluding folders from recent documents doesn't do the job. Also excluding some folders or patterns at a later time should delete them out of the database. Please ignore this comment if I misunderstood your approach and my concerns are already included in the proposed solution. A users history of recent activities and documents as useful as is should be the first focus of system security in my opinion... thx for reading, p. This has been fixed since KRunner uses the KActivityStats data. |