Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How do you clear the recent files list in nautilus?

  1. #1
    Join Date
    Oct 2008
    Beans
    3,509

    How do you clear the recent files list in nautilus?

    As the title says....
    or better...how to remove the Recent item on left altogether.
    Last edited by stinkeye; June 18th, 2013 at 05:20 AM.

  2. #2
    Join Date
    Oct 2006
    Location
    Ayrshire.
    Beans
    42,323
    Distro
    Ubuntu Development Release

    Re: How do you clear the recent files list in nautilus?

    Remove the file..

    Code:
    rm ~/.local/share/recently-used.xbel

  3. #3
    Join Date
    Oct 2008
    Beans
    3,509

    Re: How do you clear the recent files list in nautilus?

    Quote Originally Posted by howefield View Post
    Remove the file..

    Code:
    rm ~/.local/share/recently-used.xbel
    That's what I thought but files remain in the recent view after running and then killing nautilus with....
    Code:
    nautilus -q
    Attached Images Attached Images
    Last edited by stinkeye; June 15th, 2013 at 01:59 PM.

  4. #4
    Join Date
    Oct 2006
    Location
    Ayrshire.
    Beans
    42,323
    Distro
    Ubuntu Development Release

    Re: How do you clear the recent files list in nautilus?

    You might need a log out and log back in.

    Never noticed your OP edit, not sure about removing the "Recent" label from Nautilus but you can permanently disable the feature. A quick google should sort that, I can't remember the detail.

  5. #5
    Join Date
    Oct 2008
    Beans
    3,509

    Re: How do you clear the recent files list in nautilus?

    Log out/in ...recent still there.
    I know of solutions before of changing write permissions of the ~/.local/share/recently-used.xbel file,
    but the Recent in nautilus doesn't appear to use this file.
    Deleting recent in Zeitgeist privacy doesn't work either.

  6. #6
    Join Date
    Jun 2007
    Beans
    14,464

    Re: How do you clear the recent files list in nautilus?

    Best way to clear -
    open "Recent', select all > delete (either using the r.click > delte or shift+delete

    Not sure you can remove "Recent" from sidebar easily but to stop nautilus from populating it -
    create a file -
    ~/.config/gtk-3.0/settings.ini

    add this to file -
    Code:
    [Settings]
    gtk-recent-files-max-age=0
    (Unfortunately that's the only value that has any effect (0). So it's all or nothing. Had upstream bug on how "Recent" is 'all & forever' instead of 'recent' but they couldn't grasp the dofference.
    If gtk-recent-files-max-age=XX worked or gtk-recent-files-limit=XX worked then one could limit how long or how many entries are kept but they don't so it's all or none
    Last edited by mc4man; June 15th, 2013 at 03:34 PM.

  7. #7
    Join Date
    Oct 2008
    Beans
    3,509

    Re: How do you clear the recent files list in nautilus?

    Quote Originally Posted by mc4man View Post
    Best way to clear -
    open "Recent', select all > delete (either using the r.click > delte or shift+delete

    Not sure you can remove "Recent" from sidebar easily but to stop nautilus from populating it -
    create a file -
    ~/.config/gtk-3.0/settings.ini

    add this to file -
    Code:
    [Settings]
    gtk-recent-files-max-age=0
    (Unfortunately that's the only value that has any effect (0). So it's all or nothing. Had upstream bug on how "Recent" is 'all & forever' instead of 'recent' but they couldn't grasp the dofference.
    If gtk-recent-files-max-age=XX worked or gtk-recent-files-limit=XX worked then one could limit how long or how many entries are kept but they don't so it's all or none
    Yep that works.Thanks.
    I don't like the way, anything I open in smplayer, image viewer, gedit etc shows up in nautilus recent.
    So even though I like to use recent in gedit, it's now off.
    At least with the Dash recent, I can control what applications or files it logs.

    I also fouind indicator-privacy
    which has a menu item for "clear recent file list" which makes recent disappear immediately.
    Attached Images Attached Images
    Last edited by stinkeye; June 15th, 2013 at 05:18 PM.

  8. #8
    Join Date
    Jun 2007
    Beans
    14,464

    Re: removing recently-used.xbel

    removing recently-used.xbel would also work as previously mentioned, though "Recent" in nautilus will still show the previous until recently-used.xbel is re-created (by opening any file by any app that uses recently-used.xbel

    Maybe the indicator option 'clears' the file rather than removing it?

  9. #9
    Join Date
    Oct 2008
    Beans
    3,509

    Re: How do you clear the recent files list in nautilus?

    I ended up leaving gtk-recent-files on
    and made a quicklist item for nautilus with the Exec= line...
    Code:
    Exec=sh -c "echo > ~/.local/share/recently-used.xbel"
    Clears recent immediately.
    Attached Images Attached Images

  10. #10
    Join Date
    Jul 2007
    Location
    Nashville TN
    Beans
    134
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: How do you clear the recent files list in nautilus?

    FWIW after 4 months, this also works (in Terminal or TTY1) without having to install anything:

    > ~/.local/share/recently-used.xbel && ls -l ~/.local/share/recently-used.xbel

    The second command after && lists the file to verify it is 0 bytes.

    Next time, simply use up-arrow in Terminal to re-select the command from the BASH history. To edit out unwanted BASH history entries:
    gedit ~/.bash_history

Page 1 of 2 12 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
  •