Bug 450455

Summary: Recent files and locations listed in Dolphin panel "Recent" are very old
Product: [Applications] dolphin Reporter: cipricus <cipricus>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: cipricus, kfm-devel, meven29
Priority: NOR    
Version: 21.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot with dolphin and dashboard widget

Description cipricus 2022-02-17 13:08:07 UTC
Created attachment 146864 [details]
screenshot with dolphin and dashboard widget

Recent files and locations shown in Dolphin panel "Recent" (and thus in KDE file dialog too) under 'Recent files' and 'Recent locations' are not recent at all.  All I see is files (in 'Recent Files') and folders (in 'Recent Locations') from my system but that I am 100% sure I have not accessed in months, while the system seems to think that happened a few minutes ago.

(I have also noticed that recent files and recent applications are also askew in the Application Dashboard launcher too: they are too old, 'recent files' there are those from the list in Dolphin, the 'recent applications' have not been used at all lately.)


STEPS TO REPRODUCE
1. access various files and folders in the last hours and even days
2. remember or make a note of folders and files used in this way
 

OBSERVED RESULT
Recent files and locations shown in Dolphin panel "Recent" and in KDE file dialog (as well as, regarding files, in launcher widgets like Application Dashboard that show recent files), are far too old, maybe months.


EXPECTED RESULT
Folders and files accessed in recent hours or days should be listed instead.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91
Qt Version:  5.15.2

ADDITIONAL INFORMATION
I am now in Plasma 5.24 but have seen this in 5.18 and others.
Comment 1 cipricus 2022-02-17 16:19:32 UTC
Maybe this is not a bug at all, just a corruption on my system?

As a workaround I have added `timeline:/calendar/` and `timeline:/today/`  to "Places" in Dolphin, which adds them automatically under the "Recent" panel (therefore this shouldn't be hidden), which makes me think the `timeline` protocol is the one used by that panel anyway.  (For some reason the default entries do not work normally on my system.) The main difference between the default view and the one provided by `timeline:/` is that this does not separate files from folders.
Comment 2 Méven Car 2023-09-13 08:06:54 UTC
One thing to note, the accessed date in recentlyused:/ is their file access date, only the "modified" column reflects dates that reflect when those files were last modified/accessed.
Try sorting on the "modified" column.

Do you use baloo, or some file scanning/indexer program ?
If so that would explain why the access date of those files changed.
Comment 3 cipricus 2023-09-13 12:15:48 UTC
(In reply to Méven Car from comment #2)
> One thing to note, the accessed date in recentlyused:/ is their file access
> date, only the "modified" column reflects dates that reflect when those
> files were last modified/accessed.
> Try sorting on the "modified" column.
> 
> Do you use baloo, or some file scanning/indexer program ?
> If so that would explain why the access date of those files changed.

I am not affected by this bug because I have upgraded my system to Kubuntu 23.10, Plasma 5.27, where this is fixed for me

The problem mentioned initially by me here was much more severe than what your description of the difference between "Accessed" and "Modified" columns suggests: there was simply no update of recent files and locations at that point. I think that after deleting baloo database those Dolphin lists became void! I tried to use timeline instead etc. (https://unix.stackexchange.com/a/691084/341192).
Comment 4 cipricus 2023-09-13 12:18:58 UTC
This should be closed: I have no confirmations from other users of the problem from that versions of Plasma and Dolphin, and the problem is gone in later versions.
Comment 5 Méven Car 2023-09-14 14:50:26 UTC
(In reply to cipricus from comment #4)
> This should be closed: I have no confirmations from other users of the
> problem from that versions of Plasma and Dolphin, and the problem is gone in
> later versions.

timeline:/ data is provided by baloo

recentlyused:/ is completely independent.
(data is a sqlite database in ~/.local/share/kactivitymanagerd/resources/database)
Some fix to recentlyused:/ and kactivity that could explain why the update made it