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.
Created attachment 105163 [details] krunner with recent documents duplicated
On my system (KDE Neon, Plasma 5.9.5) the application launcher is not showing duplicates, but krunner is.
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.
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.
Here, have a patch: https://phabricator.kde.org/D13804
It turns out that the bug was already fixed somewhere along the way, so my patch was unnecessary!