GNOME Bugzilla – Bug 591404
GtkBookmark: deleting ~/.recently-used.xbel does not clear the list from memory
Last modified: 2010-05-09 12:57:09 UTC
Please describe the problem: This command below should clear the list from memory, but GNOME 2.26 (Ubuntu 9.04) retains the list. (I think maybe GNOME will even re-write the file.) $ rm -f ~/.recently-used.xbel To show how inconsistent this behaviour is, truncating the file *does* clear the list from GNOME panel. $ echo > ~/.recently-used.xbel Steps to reproduce: 1. Create recent documents list 2. rm -f 3. rm -f ~/.recently-used.xbel Actual results: Documents are still listed in the GNOME panel. Expected results: The list should be cleared from memory (from the GNOME panel). Does this happen every time? Yes Other information: Related bug in privacy cleaner application: https://bugs.launchpad.net/bleachbit/+bug/407988
In GNOME 2.30 (Ubuntu Lucid Lynx) truncating no longer clears the recent documents list. There appears to be no way to clear it programatically.
(In reply to comment #1) > There appears to be no way to clear it programatically. you should have searched in the API reference, namely: gtk_recent_manager_purge_items(): http://library.gnome.org/devel/gtk/stable/GtkRecentManager.html#gtk-recent-manager-purge-items if you don't want to *ever* save the contents of the recently used files list then you can use the gtk-recent-files-max-age GtkSetting: http://library.gnome.org/devel/gtk/stable/GtkSettings.html#GtkSettings--gtk-recent-files-max-age and set: gtk-recent-files-max-age = -1 inside your $HOME/.gtkrc file.
sorry, it's: gtk-recent-files-max-age = 0 (had the -1 copy pasted from somewhere).