KRecentDocument needs to move down from KIO
Open, Needs TriagePublic

Description

KRecentDocument is used by KIO::ApplicationLauncherJob (and others) to write down the list of Plasma-global recently opened files/URLs. KActivitiesStats watches that file.

The only problem with that move is the use of KIO::iconNameForUrl(url) to write the icon into the file. We could just take it as argument.

Do we wait until KF6, or come up with a new name and write the new class already? In KConfig? (or in KCoreAddons, using QSettings)?
Also an opportunity to move the data to the "state" directory (KSharedConfig()::openStateConfig(), if using KConfig).

dfaure updated the task description. (Show Details)Mar 27 2021, 2:12 PM
meven added a subscriber: meven.Mar 27 2021, 5:20 PM

Btw For KF6 I was hoping to replace our KRecentDocument implementation with one implementing the freedesktop "~/.local/share/recently-used.xbel" for increased compat with GTK (and lighter KActivitiesStat daemon).

There is a MR that does most of this work (saving data to recently-used.xbel)
https://invent.kde.org/frameworks/kio/-/merge_requests/31

The only problem with that move is the use of KIO::iconNameForUrl(url) to write the icon into the file

That's no longer relevant after the rework to use recently-used.xbel

Also an opportunity to move the data to the "state" directory (KSharedConfig()::openStateConfig(), if using KConfig).

Also no longer relevant

It could go into KService, or if we got rid of the KService usage to KConfig