![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Quad Shot of Ubuntu
![]() Join Date: Mar 2005
Beans: 496
Ubuntu 9.10 Karmic Koala
|
HOW-TO: Enable and Disable the Recent Documents Menu in Gnome
To disable the recent documents menu in Gnome:
- Open '/home/username/.recently-used' in gedit: gedit /home/username/.recently-used- Empty the contents of the file, save, and exit. - Make the file read-only: chmod 400 /home/username/.recently-used To re-enable the recent documents menu in Gnome: - Make the file readable and writeable by the owner: chmod 600 /home/username/.recently-used AN EASIER ALTERNATIVE TO THE ABOVE!!! Use the script below by adding it to the nautilus script menu: - Open a blank text document and copy/paste the following: Code:
#!/bin/sh # Enable/Disable Recent Documents Menu in Gnome if [ ! -f "$HOME/.recently-used" ]; then echo "" > "$HOME/.recently-used" chmod 600 "$HOME/.recently-used" fi if [ -w "$HOME/.recently-used" ]; then echo "" > "$HOME/.recently-used" chmod 400 "$HOME/.recently-used" if [ "$?" = "0" ]; then zenity --title="Disabled" --info --text="The 'Recent Documents' menu item has been disabled." else zenity --title="Error" --error --text="There was an error disabling the 'Recent Documents' menu." fi elif [ -f "$HOME/.recently-used" ]; then chmod 600 "$HOME/.recently-used" if [ "$?" = "0" ]; then zenity --title="Enabled" --info --text="The 'Recent Documents' menu item has been enabled." else zenity --title="Error" --error --text="There was an error enabling the 'Recent Documents' menu." fi else zenity --title="Error" --error --text="It appears the file '$HOME/.recently-used' does not exist and could not be created." fi - Set the proper permissions: chmod 755 /path/to/saved/file- Copy the file to the nautilus script directory located at: /home/username/.gnome2/nautilus-scripts
__________________
(\ /)
(O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. Last edited by audax321; November 17th, 2005 at 12:03 AM.. |
|
|
|
|
|
#2 |
|
Just Give Me the Beans!
![]() Join Date: Sep 2005
Beans: 40
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
How about in Edgy?
/home/user/.recently-used.xbel pops up and resurrects no matter what you do. |
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Aug 2006
Beans: 24
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
Yeah, this doesn't work in edgy. I REALLY want to get rid of this so if anyone has found a way, post it.
|
|
|
|
|
|
#4 |
|
Just Give Me the Beans!
![]() Join Date: Sep 2005
Beans: 40
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
anyone?
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2006
My beans are hidden!
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
Code:
$ rm .recently-used.xbel $ mkdir .recently-used.xbel |
|
|
|
|
|
#6 |
|
Way Too Much Ubuntu
![]() Join Date: Aug 2006
Beans: 270
Ubuntu 10.04 Lucid Lynx
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
Thanks for that, I haven't seen this solution anywhere else. This is a good way to disable the recent documents menu in edgy.
__________________
Dell Inspiron 1318 - Lucid Lynx 64-bit - Here is how to fix the built in mic. - Vampire power sucks! |
|
|
|
|
|
#7 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2006
Beans: 10
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
|
|
|
|
|
|
#8 | |
|
Way Too Much Ubuntu
![]() Join Date: Aug 2006
Beans: 270
Ubuntu 10.04 Lucid Lynx
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
Quote:
Yeah, still works in Feisty. Just did a clean install, and my Recently Used Documents menu is clean as well. That function is weird. Good riddance.
__________________
Dell Inspiron 1318 - Lucid Lynx 64-bit - Here is how to fix the built in mic. - Vampire power sucks! |
|
|
|
|
|
|
#9 |
|
A Carafe of Ubuntu
![]() Join Date: Dec 2007
Beans: 90
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome
|
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
Beans: 3
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOW-TO: Enable and Disable the Recent Documents Menu in Gnome
It works very well, thanks!
__________________
http://webcadence.net |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|