Quite a few applications use
~/.local/share/recently-used.xbel to keep track of a user’s most recent files. Unfortunately, not every application offers customization options to disable this list.
One possible solution, granted, a quite hacky one, is to clear
recently-used.xbel and revoke a user’s permission to edit it again.
First, remove and re-create the file to clear it
$ rm -f ~/.local/share/recently-used.xbel $ touch ~/.local/share/recently-used.xbel
You can then edit the permission so that the user can’t edit the file any more.
$ chmod -w ~/.local/share/recently-used.xbel
For KDE, there is quite a similar mechanism. While there is no single file that stores the recently used items, a
.desktop file is created in
~/.kde/share/apps/RecentDocuments/ for every item.
If if you revoke a user’s writing permission to that folder, KDE won’t add any item to the ‘recently used’ list.
$ chmod -w ~/.kde/share/apps/RecentDocuments/