Bug 379129

Summary: Duplicate recent document opened
Product: [Frameworks and Libraries] frameworks-kio Reporter: danjaredg
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, kdelibs-bugs-null, nate, nortexoid, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: application launcher with recent documents duplicated
krunner with recent documents duplicated

Description danjaredg 2017-04-23 17:19:08 UTC
Created attachment 105162 [details]
application launcher with recent documents duplicated

the recent documents opened appear duplicates

To reproduce: Open a file many times, and this files appear duplicate many times in krunner and laucher menu.
Comment 1 danjaredg 2017-04-23 17:21:07 UTC
Created attachment 105163 [details]
krunner with recent documents duplicated
Comment 2 Michael D 2017-05-28 06:57:03 UTC
On my system (KDE Neon, Plasma 5.9.5) the application launcher is not showing duplicates, but krunner is.
Comment 3 Kai Uwe Broulik 2017-05-29 12:11:10 UTC
Did you perhaps open the same file in different applications? When I open the same file in Kate and Kwrite for instance I get it in KRunner twice. Agreed, it should probably strip duplicates.

KRecentDocument::recentDocuments() probably shouldn't contain duplicates.
Comment 4 Michael D 2017-05-29 17:46:08 UTC
It definitely should not unless the entries remember which application it was opened in and displays this info in the recents list. But even still duplicates don't make sense.
Comment 5 Nate Graham 2018-06-29 23:07:39 UTC
Here, have a patch: https://phabricator.kde.org/D13804
Comment 6 Nate Graham 2018-08-16 22:02:43 UTC
It turns out that the bug was already fixed somewhere along the way, so my patch was unnecessary!