Ubuntu – How to restore a Places folder I accidentally deleted in Nautilus

14.04nautilus

I accidentally deleted my Documents folder and didn't notice it for a couple days. Somewhere in that time, Nautilus auto-updated my list of Places so it no longer includes my Documents folder. I have since restored my Documents folder, but the Places link is still missing. How do I get it back?

Best Answer

Once you have recreated the Documents folder, make sure your ~/.config/user-dirs.dirs contains something like this:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

You can edit it as needed using any text editor, for example

nano ~/.config/user-dirs.dirs

Then run the command xdg-user-dirs-gtk-update.

Related Question