Clear and Disable Recent Documents list on ubuntu gnome
This post was written by admin on July 19, 2009
Posted Under: General
Posted Under: General
In Places->Recent Documents it lists recent documents on you ubuntu gnome.You may want to disable it because you don’t want other people to see in your list.
To clear the recent documents,just click on “Clear Recent Documents”.
To disable the recent documents feature,first create a file by following command in terminal
touch ~/.gtkrc-2.0
Then,edit the file by:
sudo gedit ~/.gtkrc-2.0
Add following,save and close the file
gtk-recent-files-max-age=0
Restart gnome,the recent documents won’t appear anymore.
Related posts:
- How to Clear and Disable Totem’s recent history in Ubuntu 11.04 Unity
- Clear/Prevent Recent Documents under Files & Folders in Ubuntu Unity
- Clear sessions from drop-down list in LightDM Login Screen
- How to Clear Login History and Command History in Ubuntu Linux
- How to Disable browser bar drop-down list in Firefox
Tags: desktop


Reader Comments
Thank you
[Reply]
According to the official ubuntu documentation you should never use sudo for graphical applications, but only for command line ones.
.
https://help.ubuntu.com/community/RootSudo#Graphical%20sudo
Instead use gksudo.
Thanks for the guide though
[Reply]
no need for sudo here at all, you are the owner of the file, just “gedit .gtkrc-2.0″
[Reply]
thanks!!!
[Reply]
it seemed that i had some problem while i was using the command as you do.
it turned out that
‘(gedit:18469): GLib-GIO-CRITICAL **: g_converter_convert: assertion `outbuf_size > 0′ failed
Segmentation fault (core dumped)’
I just don’t know why I am using ubuntu 10.04
[Reply]
peace Reply:
April 7th, 2010 at 1:15 am
me too
[Reply]
Or, alternatively, you could just use:
echo ‘gtk-recent-files-max-age=0′ >> ~/.gtkrc-2.0
Which is all of the above, but safer and shorter.
[Reply]
Ziga Reply:
February 22nd, 2011 at 4:17 am
I agree. Just a small correction. It doesn’t work if you use apostrophes. Therefore, the correct command is:
echo gtk-recent-files-max-age=0 >> ~/.gtkrc-2.0
[Reply]