Friday, 17 February 2012

Clearing recent documents history in GNOME 3

If you are using GNOME 3, have you ever wondered how to clear the history of recently used documents without fiddling around with ~/.local/share/recently-used.xbel file. Ok. Here is the solution for you.

  1. Open the GNOME shell's integrated inspector tool and JavaScript console called Looking Glass by typing the command lg in the prompt invoked by Alt+F2
  2. Then enter the following imports.gi.Gtk.RecentManager.get_default().purge_items()
  3. Press Esc to exit from the looking glass console.
I hope that the GNOME guys will provide an easier way for this in the near future.

Have fun :)

No comments:

Post a Comment