Bug 398050 - Recent documents section is not populated
Summary: Recent documents section is not populated
Status: RESOLVED FIXED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-30 05:45 UTC by Max
Modified: 2022-09-12 17:51 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Empty recents list (24.21 KB, image/png)
2021-02-04 11:12 UTC, Max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2018-08-30 05:45:05 UTC
During the session recent documents tab is filled with files and applications I open, and links are created in ~/.local/share/RecentDocuments/, but when I leave the session (reboot for example) and start new one, the tab is empty, though links are still present in ~/.local/share/RecentDocuments/
Comment 1 Patrick Silva 2018-09-14 18:21:44 UTC
I can confirm in plasma 5.14 beta, Arch Linux.
Kicker is also affected.
Comment 2 Nate Graham 2021-01-07 19:07:42 UTC
Can you see if this is fixed with the new Kickoff UI in Plasma 5.21 (currently in git master)? A lot of this code was rewritten which means there's a chance it got fixed in the process.

Thanks!
Comment 3 Bug Janitor Service 2021-01-22 04:33:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Max 2021-01-22 05:50:32 UTC
I'll test as soon as fedora provides 5.21 packages.
Comment 5 Nate Graham 2021-02-01 19:32:17 UTC
You can test using the COPR repo, BTW: https://copr.fedorainfracloud.org/coprs/mkyral/plasma-unstable/
Comment 6 Max 2021-02-04 11:12:16 UTC
Created attachment 135418 [details]
Empty recents list

Tested 5.20.90-9 currently available in the mentioned copr repo. Recents list is still empty, files exist in ~/.local/share/RecentDocuments/
Comment 7 Nate Graham 2021-02-04 14:55:19 UTC
Thanks.
Comment 8 Méven Car 2021-02-05 06:32:20 UTC
The elements of the list are filled by the daemon kactivitymanage and stored in the sqlite database 
in ~/.local/share/kactivitymanagerd/resources/database.

Is opening `recentlyused:/files/` in dolphin affected too ?
Comment 9 Max 2021-02-05 06:51:27 UTC
(In reply to Méven Car from comment #8)
> The elements of the list are filled by the daemon kactivitymanage and stored
> in the sqlite database 
> in ~/.local/share/kactivitymanagerd/resources/database.
> 
> Is opening `recentlyused:/files/` in dolphin affected too ?

Dolphin shows empty folder.
Comment 10 Méven Car 2021-02-08 09:07:35 UTC
Is the daemon kactivitymanage running on your system on session start ?
I.e `$pgrep -l kactivitymanage` ?

Can you check also the content of `/usr/lib/systemd/user/plasma-kactivitymanagerd.service`
Comment 11 Max 2021-02-08 18:33:21 UTC
(In reply to Méven Car from comment #10)
> Is the daemon kactivitymanage running on your system on session start ?
> I.e `$pgrep -l kactivitymanage` ?

pgrep -l kactivitymanage
2844 kactivitymanage

> Can you check also the content of
> `/usr/lib/systemd/user/plasma-kactivitymanagerd.service`

File does not exist. Maybe fedora packages provide different way of starting the service.
Comment 12 Méven Car 2021-09-29 17:07:18 UTC
(In reply to Max from comment #11)
> (In reply to Méven Car from comment #10)
> > Is the daemon kactivitymanage running on your system on session start ?
> > I.e `$pgrep -l kactivitymanage` ?
> 
> pgrep -l kactivitymanage
> 2844 kactivitymanage
> 
> > Can you check also the content of
> > `/usr/lib/systemd/user/plasma-kactivitymanagerd.service`
> 
> File does not exist. Maybe fedora packages provide different way of starting
> the service.

I guess it is located somewhere else. I am not familiar with fedora.
maybe `find /usr -name "*kactivitymanagerd.service"` can do the trick
Comment 13 Méven Car 2021-09-29 17:08:16 UTC
(In reply to Méven Car from comment #12)
> (In reply to Max from comment #11)
> > (In reply to Méven Car from comment #10)
> > > Is the daemon kactivitymanage running on your system on session start ?
> > > I.e `$pgrep -l kactivitymanage` ?
> > 
> > pgrep -l kactivitymanage
> > 2844 kactivitymanage
> > 
> > > Can you check also the content of
> > > `/usr/lib/systemd/user/plasma-kactivitymanagerd.service`
> > 
> > File does not exist. Maybe fedora packages provide different way of starting
> > the service.
> 
> I guess it is located somewhere else. I am not familiar with fedora.
> maybe `find /usr -name "*kactivitymanagerd.service"` can do the trick

Can you check the file  ~/.local/share/kactivitymanagerd/resources/database exists and its size and create and modification dates ?
Comment 14 Max 2021-09-29 17:11:40 UTC
cat /usr/lib/systemd/user/plasma-kactivitymanagerd.service
[Unit]
Description=KActivityManager Activity manager Service
PartOf=graphical-session.target

[Service]
ExecStart=/usr/libexec/kactivitymanagerd
BusName=org.kde.ActivityManager
Slice=background.slice


stat ~/.local/share/kactivitymanagerd/resources/database
  File: /home/thesource/.local/share/kactivitymanagerd/resources/database
  Size: 20869120      Blocks: 40768      Block I/O: 4096   regular file
Device: fd02h/64770d        Inode: 1706479     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/thesource)   Gid: ( 1000/thesource)
Accessed:      2021-09-29 17:12:41.281124789 +0300
Modified:      2021-09-29 17:12:40.371131757 +0300
Changed:       2021-09-29 17:12:40.371131757 +0300
Created:       2015-05-31 11:28:28.426731081 +0300
Comment 15 Nate Graham 2022-09-08 03:45:26 UTC
Any chance you could test again with Plasma 5.25?
Comment 16 Max 2022-09-12 17:42:50 UTC
(In reply to Nate Graham from comment #15)
> Any chance you could test again with Plasma 5.25?

I just checked recent and frequently used entries in 5.25 and it seems they work properly now.
Comment 17 Nate Graham 2022-09-12 17:51:13 UTC
Great, thanks!