Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

  1. #1
    Join Date
    Mar 2005
    Beans
    492
    Distro
    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
    - Save the file and exit.

    - 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

    Last edited by audax321; November 17th, 2005 at 06:03 AM.
    (\ /)
    (O.o)
    (> <)

    This is Bunny. Copy Bunny into your signature to help him on his way to world domination.

  2. #2
    Join Date
    Sep 2005
    Beans
    41

    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. #3
    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. #4
    Join Date
    Sep 2005
    Beans
    41

    Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

    anyone?

  5. #5
    Join Date
    Nov 2006
    Beans
    Hidden!

    Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

    Code:
    $ rm .recently-used.xbel
    $ mkdir .recently-used.xbel
    this works, but you'll get gtk-warnings in console..

  6. #6
    Join Date
    Aug 2006
    Beans
    272
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

    Quote Originally Posted by cariboũ View Post
    Code:
    $ rm .recently-used.xbel
    $ mkdir .recently-used.xbel
    this works, but you'll get gtk-warnings in console..
    Thanks for that, I haven't seen this solution anywhere else. This is a good way to disable the recent documents menu in edgy.

  7. #7

    Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

    Quote Originally Posted by cariboũ View Post
    Code:
    $ rm .recently-used.xbel
    $ mkdir .recently-used.xbel
    this works, but you'll get gtk-warnings in console..
    It definitely does work, thanks for the great idea.

  8. #8
    Join Date
    Aug 2006
    Beans
    272
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

    Quote Originally Posted by dolphinsonar View Post
    Thanks for that, I haven't seen this solution anywhere else. This is a good way to disable the recent documents menu in edgy.

    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.

  9. #9
    Join Date
    Dec 2007
    Beans
    90
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOW-TO: Enable and Disable the Recently Used Menu in Gnome

    Quote Originally Posted by microsafe17 View Post
    It definitely does work, thanks for the great idea.
    Question 1) Does this work in Gutsy?
    Question 2) Do you still need to edit the .recently-used file?


  10. #10
    Join Date
    Apr 2006
    Beans
    7
    Distro
    Ubuntu

    Re: HOW-TO: Enable and Disable the Recent Documents Menu in Gnome

    It works very well, thanks!

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •