https://bugs.kde.org/show_bug.cgi?id=459485

--- Comment #8 from Méven Car <meve...@gmail.com> ---
Notes for bug resolver:

The bug is due to the fact that recentlyused:/ can contain several time a file
with the same filename. But those files still need to be identified
individually. Furthermore the order is determined by the underlying query to
kactivitiesStats.
We have a mechanism in KIO to hide the technical name to the user, when we fill
UDS_DISPLAY_NAME, the name is only revealed when displaying its real url or
path. Currently recentlyused:/ code is exploiting this but this can't fulfill
the need here. To get to identify files individually (this is also a
requirement of using KDirOperator/KDirModel), -n is appended to the url where n
is the number of the row is added to the technical name. This allows
recentlyused to be able to decode and identify files with urls such
`recentlyused:/files/CMakeLists.txt-10` .

This mostly works in dolphin. But FileWidget (KIO File picker) needs to return
urls or path to its user, so it bluntly return the technical url. 
recentlyused:/ fills UDS_LOCAL_PATH and UDS_TARGET_URL, but we lack a way to
make FileWidget use it instead (this is done is `KDirOperator::selectDir` for
instance). FileWidgets also expects those urls to be filled in the selecturl
bar correctly and can cause some other incompatibility issues.

This behavior (hence) this regression was added in
https://invent.kde.org/network/kio-extras/-/merge_requests/158/diffs.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to