How do I remove items from the Places section of the Files sidebar?

9,683

The answer to this question is covered here.

You need to change the variables in .config/user-dirs.dirs to point to $HOME like this:

XDG_VIDEOS_DIR="$HOME"
Share:
9,683

Related videos on Youtube

Cory Klein
Author by

Cory Klein

Computer science enthusiast, open source advocate, frugality expert

Updated on September 18, 2022

Comments

  • Cory Klein
    Cory Klein over 1 year

    I don't use the Music, Documents, Pictures, Video, and Trash folders often enough to warrant them an honorary place on the sidebar of Ubuntu's 13.04 default file manager "Files".

    enter image description here

    I would like to remove them, but the "Remove" item on the context menu is grayed out. Since Linux distros tend to be configurable I'm guessing there is a way around this.

    The Gear menu doesn't seem to have any options to do this:

    enter image description here

    The Bookmarks menu looked helpful, but it still made no changes.

    enter image description here

    enter image description here

    (This is after I removed all the Bookmarks I wasn't interested in.)

    I have also tried the suggestion from this answer and commented out lines I don't want from user-dirs.dirs, but still no luck:

    $ vim ~/.config/user-dirs.dirs
    <edits>
    $ xdg-user-dirs-gtk-update
    

    How do you remove these default items from the sidebar?

    • Cory Klein
      Cory Klein over 10 years
      @Takkat I just tried that answer, it didn't change the appearance at all. Have you tried this on 13.04? Also, if Nautilus is being used for files in 13.04, why does the File->About page say "Files 3.6.3"?
    • Cory Klein
      Cory Klein over 10 years
      I was able to fix it finally by following this comment.
    • Takkat
      Takkat over 10 years
      Great! I edited the answer to add the comment. This makes it more prominent ;)
    • Arnold
      Arnold over 10 years
      @Takkat 's answer on this link perfectly works on my 13.04 x64 askubuntu.com/questions/79150/…
  • Cory Klein
    Cory Klein over 10 years
    Unfortunately in 13.04 there is no Edit Bookmarks menu available from the Gear icon or the menu bar.
  • Maxim Kachurovskiy
    Maxim Kachurovskiy over 9 years
    Wow, that helped. Simply deleting those entries didn't.
  • loxaxs
    loxaxs about 7 years
    In 16.04, there is an option Bookmarks which does the same. But the changes do not affect the sidepane.