SUMMARY STEPS TO REPRODUCE 1. Settings > Configure Kate > Sessions > "Maximum number of entries in recent file list" = 0 2. Open any file 3. Open ~/.local/share/kate/anonymous.katesession OBSERVED RESULT Last file is saved into anonymous.katesession under [Document 0] EXPECTED RESULT No file is saved SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 20.04 KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 ADDITIONAL INFORMATION Looks like settings in systemsettings5 > Workspace behavior > Activities > Privacy are ignored. Do they affect something else then storing recent files in Kate? With "Do not remember" opened files are still written to _several_ locations, including ~/.local/share/RecentDocuments/ that I have now put into size=4k tmpfs as an experiment. System seems stable even when RecentDocuments dir is full.
I can confirm this is still an issue in kate from git master, filename is shown in [Recent Files] section of file.
I think KRecentFilesAction can't really cope well with the limit "0".
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/34
Git commit 6fe641001ff2be40849568b2c3b0c0f90348133f by Christoph Cullmann. Committed on 23/02/2021 at 11:22. Pushed by cullmann into branch 'master'. fix maxItems == 0, really ensure no items are remembered * fix maxItems == 0 avoids inserting of any item * fix that maxItems can be negative, code doesn't handle that M +10 -3 src/krecentfilesaction.cpp M +2 -0 src/krecentfilesaction.h https://invent.kde.org/frameworks/kconfigwidgets/commit/6fe641001ff2be40849568b2c3b0c0f90348133f