Bug 360225 - Expire files in apps/okular/docdata/
Summary: Expire files in apps/okular/docdata/
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.21.3
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 21:04 UTC by Martin Schröder
Modified: 2023-08-27 17:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schröder 2016-03-07 21:04:17 UTC
Apparently okular saves information about files it has opened in apps/okular/docdata/ - one file for every file ever opened. I now have 2053 files there, the oldest from 2010-11-27.

Please provide a way to automatically delete files there after a certain time (like six months). I know this can easily done with e.g. cron by the user, but in this case I think it's the responsibility of the program that creates these files.

Reproducible: Always
Comment 1 yan12125 2023-08-27 17:15:10 UTC
This issue can be work-arounded with systemd. For example, create a file ~/.config/user-tmpfiles.d/okular.conf with contents

    # Work-around https://bugs.kde.org/show_bug.cgi?id=360225
    e %h/.local/share/okular/docdata  - - - 60d

and enable/start the relevant service with the command

    systemctl --user enable --now systemd-tmpfiles-clean.timer