File ~/.local/share/recently-used.xbel is keep populating even with UseRecent=false in RecentDocuments config group. I think addToXbel should be after this conditional check: https://invent.kde.org/frameworks/kio/-/blob/master/src/core/krecentdocument.cpp#L509
Sounds good! Wanna do it? :)
This file is not populated only by KDE software. What was/were the applications that added historic data ? You will see our implementation does enforce this setting. https://invent.kde.org/frameworks/kio/-/blob/master/src/core/krecentdocument.cpp#L526 This could be considered a bug about this comment in commit https://invent.kde.org/frameworks/kio/-/commit/16e8d3151c31dd3695f4da2aa3536eb5cd156edc: > The constraints are enforced at add time, meaning data added by other libraries (GTK) will not respect those. We still need a daemon to enforce this. This could be the activitymanagerd daemon, that already monitors the xbel file.
> You will see our implementation does enforce this setting. It wasn't before mentioned commit was merged, where addToXbel was executing before any checks: https://invent.kde.org/frameworks/kio/-/commit/16e8d3151c31dd3695f4da2aa3536eb5cd156edc#05012c7c5abbd196d468a9c8ca973dc68c17c082_495_519 I even see that there was an attempt to backport it kf5, which was reverted: https://invent.kde.org/frameworks/kio/-/commit/90357ac0394030a607d69a26dca5d6a0a64b42b0#05012c7c5abbd196d468a9c8ca973dc68c17c082_497_483 With KF 5.107.0 opening any file in Dolpin or saving screenshot with Spectacle will result in write to recently-used.xbel.
All right, so this a simple to fix KF5bug.