Bug 437382 - Recent locations and recent files are broken in Dolphin
Summary: Recent locations and recent files are broken in Dolphin
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 23:08 UTC by medin
Modified: 2021-10-18 10:41 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-05-19 23:08:57 UTC
The Recent Files and Recent Locations in Dolphin are not listing the recent accessed or used files/folders and show old results while the new apps launcher History shows correclty the recent files/folders.
Comment 1 Nate Graham 2021-05-20 15:03:27 UTC
Works for me.
Comment 2 Méven Car 2021-05-20 15:18:47 UTC
Do you mean the results displayed there are not refreshed as new files and folders are accessed ?

Does hitting F5 work as a workaround ?
Comment 3 medin 2021-05-20 15:23:16 UTC
(In reply to Méven Car from comment #2)
> Do you mean the results displayed there are not refreshed as new files and
> folders are accessed ?
> 
> Does hitting F5 work as a workaround ?

Yes, you are right only after pressing f5 it refreshes the view.
Comment 4 medin 2021-05-21 01:25:41 UTC
Even with refresh, some files and folders are not appearing, and what I found is that access time is broken in KDE because it's never updated when a file is accessed. When I sort recent files/folder by access time column they are not correctly sorted.
Comment 5 Méven Car 2021-05-21 04:41:57 UTC
(In reply to medin from comment #4)
> Even with refresh, some files and folders are not appearing, 

The data there is not refreshed dynamically based on access time, that would not be reasonably feasible.
It is fed by apps instead, which means they need to have support.
KDE apps and Gtk apps should have support out of the box.

Did you notice this missing files or folders with a particular app or mimetype ?

> and what I
> found is that access time is broken in KDE because it's never updated when a
> file is accessed.
> When I sort recent files/folder by access time column they
> are not correctly sorted.

Do you have previews turned on ? I am asking this because it will change access time when dolphin generates a new file preview.
Did you check with on disk data compared to recentlyused:// view ?
I don't reproduce this.

Currently we don't support refreshing this view as new data is added.
This is a known limitation.
Comment 6 Simon Pfeifer 2021-05-23 12:06:03 UTC
For me, even with an F5 refresh hit, some files of the same mime-type do not appear in the recent files view in Dolphin whereas they consistently appear in the recent documents view of the app launcher. Same with folders.
Comment 7 Bug Janitor Service 2021-06-07 04:33:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 medin 2021-06-07 09:52:43 UTC
With new fresh account it seems to work fine but it always needs pressing F5.
Comment 9 Dominik Kummer 2021-09-21 21:01:00 UTC
Even with a fresh account "Recent Files" and "Recent Locations" does not work for me. "Recent Files/Locations" though does work in Application Launcher, but not in Dolphin neither in KFiledialog. Actually I don't know since when this bug occurs to me, because I activated "remember history" in Activity Settings/Privacy only for testing today. Are "Recent Files" and "Activity History" actually related?
Btw how do I add additional applications to the list in Activity Settings/Privacy?
Comment 10 Méven Car 2021-10-18 10:41:53 UTC
(In reply to Dominik Kummer from comment #9)
> Even with a fresh account "Recent Files" and "Recent Locations" does not
> work for me. "Recent Files/Locations" though does work in Application
> Launcher, but not in Dolphin neither in KFiledialog.

Dolphin and KFiledialog share the same backend it is expected to have the same issues.

> Actually I don't know
> since when this bug occurs to me, because I activated "remember history" in
> Activity Settings/Privacy only for testing today.

Does it means the bug does not occur for you anymore now you turned on "remember history" in Activity Settings?

That would be expected "Recent Files/Locations" in dolphin are using KActivity backend, or at least a prerequist to have this option activated.
You can use instead "recentdocuments:/" but it is a lot useful.

>. Are "Recent Files" and "Activity History" actually related?

"Recent Files/Locations" and "Activity History" are implemented through the same kactivity backend, it saves applications accessed and file access while retaining the activity context.
More details if you are interested at http://www.bivouak.fr/recently-used-ioslave/

> Btw how do I add additional applications to the list in Activity
> Settings/Privacy?

Those applications for which we had received some activity in past. That is they have a recent accessed files list, or, like dolphin and gwenview deeper integration.
If there are not visible there, that means the applications does not expose any activity "hint" or not in a way KActivity supports (it support KDE Apps and GTK Apps currently).

(In reply to Simon Pfeifer from comment #6)
> For me, even with an F5 refresh hit, some files of the same mime-type do not
> appear in the recent files view in Dolphin whereas they consistently appear
> in the recent documents view of the app launcher. Same with folders.

Do you a 30 elements in Recent files ?
You can have virtual folders for mimetype or more files listed by editing the location url or edit your place in the place bar.
More details if you are interested at http://www.bivouak.fr/recently-used-ioslave/