Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

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

  1. #21
    Join Date
    Jan 2006
    Location
    Waterloo, ON, Canada
    Beans
    214
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Creating the bogus .recently-used.xbel directory worked for me in Jaunty.
    ~Fermmy

  2. #22
    Join Date
    Mar 2008
    Beans
    14

    Lightbulb Implemented in gtk

    From https://bugzilla.gnome.org/show_bug.cgi?id=305325#c13



    This is already implemented in gtk.

    Add "gtk-recent-files-max-age=0" to your ~/.gtkrc-2.0.

    'Something to click' is just missing

    See:
    http://library.gnome.org/devel/gtk/2...-files-max-age

  3. #23
    Join Date
    Apr 2009
    Beans
    24

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

    sudo chattr +i recently-used.xbel

    that worked a treat...

    to undo:
    sudo chattr -i .recently-used.xbel

    just install ubuntu-tweak and go to DESKTOP>GNOME and under history uncheck Enable system-wide "Recent Documents" list

    http://ubuntu-tweak.com/downloads

  4. #24
    Join Date
    May 2010
    Beans
    1

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

    Since deleting the whole thing wastes a lot of space in the gnome-shell, I wrote a tiny python mess to remove specific entries matching any python regex patterns:
    http://pastebin.com/dakpXq0z

    save as ~./cleanme.py , make it executable, run as
    "~./cleanme.py SomeStuffYouDontWant SomeMoreStuffToDelete morePr0n ..."

    careful, doesn't backup anything, no warranty that it works, might shoot you in the face...
    it should print out the elements it's deleting though, so you can always pipe it into a backup file...

    Protip: add it to your crontab as an hourly job, easiest with "Scheduled Tasks" UI in Gnome (sudo aptitude install gnome-schedule)
    Last edited by Rumored; May 7th, 2010 at 11:40 PM. Reason: had forgotten a "break" in the script...

  5. #25
    Join Date
    Feb 2006
    Location
    Massachusetts
    Beans
    66
    Distro
    Ubuntu 10.04 Lucid Lynx

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

    Thanks, I had forgotten this, and the terminal commands worked like a charm in Lynx.

  6. #26
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

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

    No having .recently-used.xbel working breaks the Library (the list of VMs) of VMware Player 3.1.0.

    https://bugs.launchpad.net/ubuntu-tweak/+bug/585268
    Last edited by dcstar; May 25th, 2010 at 09:13 AM.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  7. #27
    Join Date
    Feb 2007
    Location
    MN USA
    Beans
    91
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    I have this little script which deletes a bunch of history-type things when I run it:

    #!/bin/bash

    rm -r /home/username/.macromedia
    rm /home/username/.config/google-chrome/Default/History
    rm -r /home/username/.cache/google-chrome
    rm -r /home/username/.thumbnails

    Does anything bad happen if I add this line:

    rm /home/username/.recently-used*

    And is there a way to get a script to run automatically at logoff/shutdown, the way you can at startup?

    Thanks!
    - Joe in MN

  8. #28
    Join Date
    Feb 2008
    Beans
    794
    Distro
    Ubuntu

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

    Easier option is to point the cache & thumbnails folders to the /tmp/* folder so it's wiped at every reboot
    I've got a simple script to recreate the folders at every boot.
    Laters...
    Sol
    "Have you found the secrets of the universe? Asked Zebade "I'm sure I left them here somewhere" User numbers: Ubuntu 23772 Linux 477911

  9. #29
    Join Date
    Aug 2006
    Location
    Haarlem Netherlands
    Beans
    250

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

    #!/bin/bash
    #
    # /etc/rc.local.shutdown: Local shutdown script.
    #
    rm -f /home/#/.recently-used.xbel
    rm -f /home/#/.recently-used.xbel.*
    rm -rf /home/#/.macromedia/Flash_Player/#SharedObjects/*
    rm -rf /home/#/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/*
    rm -r /home/#/.thumbnails/*
    Works with Arch, I guess that Ubuntu has a similar routine?

Page 3 of 3 FirstFirst 123

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
  •