Bug 420951 - "Recent Locations" item
Summary: "Recent Locations" item
Status: ASSIGNED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) (show other bugs)
Version: 5.18.4
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Alexander Lohnau
URL:
Keywords:
: 426610 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-03 13:24 UTC by Paolo Zamponi
Modified: 2020-11-01 14:44 UTC (History)
7 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 Paolo Zamponi 2020-05-03 13:24:49 UTC
SUMMARY
Now we have Recent/Often-Used Documents/Applications/contacts, but in the "Documents" one there are both documents and "Locations" (e.g. the folders I visited with Dolphin). So a new Recent/Often-Used Locations entry could be welcome :) ...

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Comment 1 spiesant 2020-07-08 05:06:19 UTC
Agreed - for clarity, I'd hoped to get a "Recent Documents" menu that actually represents "recent documents" - similarly to on Windows.  As Plasma 5's "Recent Documents" menu is cluttered with a mix of actual "recent documents" AND "recent locations" together, very few actual documents are shown.  They're rapidly pushed out of the menu by virtue of simply browsing around the filesystem.
Comment 2 Alexander Lohnau 2020-07-11 06:48:38 UTC
Yep, this should be changed. Especially with https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/150/
Comment 3 spiesant 2020-07-12 19:26:15 UTC
Question: is there any way to manually clean out all the locations from 'Recent Documents?'  Then I could at least 'fix' it with a cronjob or a hotkey.  I tried deleting ~/.local/share/user-places.xbel, but that didn't do it.
Comment 4 spiesant 2020-07-12 20:20:07 UTC
The following seems to be working:

sqlite3 ~/.local/share/kactivitymanagerd/resources/database "DELETE FROM ResourceScoreCache WHERE initiatingAgent = 'dolphin';" ; pkill -f kactivitymanagerd ; /usr/lib/x86_64-linux-gnu/libexec/kactivitymanagerd &

Not sure if this really safe or recommended, but at least it does seem to clear out all the clutter & make the menu behave properly if or until an official solution exists...
Comment 5 Bug Janitor Service 2020-07-13 19:49:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/153
Comment 6 Alexander Lohnau 2020-07-14 09:55:06 UTC
Git commit 72c6daa6364dccb894fe55af84acf6db7e709ebf by Alexander Lohnau.
Committed on 14/07/2020 at 09:54.
Pushed by alex into branch 'master'.

Display only recent documents in Kickers "Recent Documents"

M  +1    -1    applets/kicker/plugin/recentusagemodel.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/72c6daa6364dccb894fe55af84acf6db7e709ebf
Comment 7 Alexander Lohnau 2020-09-16 14:42:18 UTC
*** Bug 426610 has been marked as a duplicate of this bug. ***
Comment 8 Paolo Zamponi 2020-10-22 06:43:03 UTC
Hi, opened another bug report (https://bugs.kde.org/show_bug.cgi?id=428085). Since those problems didn't affect Plasma 5.19 and previous version, could they be related to this fix?
Comment 9 Méven Car 2020-11-01 14:44:32 UTC
(In reply to Paolo Zamponi from comment #8)
> Hi, opened another bug report (https://bugs.kde.org/show_bug.cgi?id=428085).
> Since those problems didn't affect Plasma 5.19 and previous version, could
> they be related to this fix?

It might but I can't be sure.
I am familiar with the underlying library and I reviewed the change and nothing looks suspicious. It might be but indirectly.
Unfortunately I can't test and confirm right now.