Bug 501903

Summary: Two "Files" sections under "History"
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: code, meven, mikel5764, nate, noahadvs
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=496179
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot
screenshot

Description Patrick Silva 2025-03-23 12:19:05 UTC
Created attachment 179668 [details]
screenshot

STEPS TO REPRODUCE
1. open Kickoff
2. click on "Places" on bottom
3. click on "History"

OBSERVED RESULT
Two "Files" sections, as seen in the attached screenshot

EXPECTED RESULT
just one "Files" section

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 1 Patrick Silva 2025-03-23 12:19:49 UTC
Created attachment 179669 [details]
screenshot
Comment 2 Luke Horwell 2025-03-23 16:27:34 UTC
Can confirm. It looks like it lists items in chronological order, but each file/folder type causes a new group to start. Grouping by relative time ("Today", "Yesterday") would make more sense to me. Or, I'd be happier with no grouping at all, assuming it's sorting in chronological order, newest at top.

It's similiar for the "Frequently Used" list too - perhaps "Most frequent", "Occasionally" could be groups. Or likewise, grouping doesn't seem a necessity for that list either.
Comment 3 Nate Graham 2025-03-25 23:01:42 UTC
Can also reproduce. One is full of folders that should be in the Folders section.
Comment 4 Méven 2025-03-26 08:04:05 UTC
(In reply to Nate Graham from comment #3)
> Can also reproduce. One is full of folders that should be in the Folders
> section.

A work around is clicking (and opening the file in dolphin) once on folders that are «among» files.
The «home» folder won't be intertwined among files.

Technically this happens because the «Home» entry wasn't marked as having the inode/directory mimetype in plasma-activities database.
This should fix itself when opening those folders in dolphin.
I haven't identified where those entries are added only partially (without their mime-type), this shouldn't be too hard.

Some context:
https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/250
https://invent.kde.org/system/dolphin/-/merge_requests/867