The ‘Recent Documents’ in GNOME Desktop Environment can be accessed via ‘Menu -> Places -> Recent Documents’. Ever wanted to keep your sneaky friends from knowing what files you are accessing ?
When you access a file via Nautilus file manager, the details are stored in an XML documents named .recently-used.xbel.
• There is an option ‘Clear Recent Documents…’ available from ‘Menu -> Places -> Recent Documents’. This will clear out the file .recently-used.xbel and subsequently the entries listed in Recent Documents. But that is not we want. We want to permanently prevent the recently opened files from appearing there.
• Deleting .recently-used.xbel won’t work. The next time you open a file, .recently-used.xbel is recreated.
• Changing the default permission of .recently-used.xbel also doesn’t work. The permissions are reset to default 600, next time you open a file.
So, here are the steps to disable ‘Recent Documents’…
In your terminal, issue the following commands
STEP1:Removes the XML file .recently-used.xbel from your Home directory
$ rm -fv $HOME/.recently-used.xbel
STEP2: Creates a new directory named .recently-used.xbel in your Home directory.
$ mkdir $HOME/.recently-used.xbel
The ‘Recent Documents’ in ‘Menu -> Places’ is greyed out, the next time you try to access it.
When you open a file next time, the existence of XML file .recently-used.xbel is checked for.
In linux everything is a file, so is .recently-used.xbel, BUT only of ‘directory’ type!! We take advantage of this fact, so that no data can be written to .recently-used.xbel