0

I have a pretty basic installation of Ubuntu 16.04 LTS. When I go to the launcher and select FILES a new screen opens. It has two parts to show some of the tree. In the left sidebar are five directories with unusual icons tied to them. I can delete the directories or rename them, but after deleting them they are still displayed. There is a "remove" option, but they are removed temporarily. As soon as FILES is re-opened the directories are back. The directories are not recognized from the terminal. I need to know how to eliminate them from appearing. Appreciate any answers.

David Foerster
  • 36,890
  • 56
  • 97
  • 151

1 Answers1

0

These are actual directories in your home folder. By default I believe it is:

  1. Home
  2. Desktop
  3. Documents
  4. Downloads
  5. Music
  6. Pictures
  7. Videos
  8. Trash

The sidebar Has them laid out as shortcuts. All of these are inside of /home/youruser

So for example you CAN access these from the terminal by either doing

cd /home/youruser/Documents

(or Pictures, Download,etc...) or by simply

cd ~/Documents

To hide the sidebar

The simple way to get rid of them is to hide them. When you open files, if you move your mouse to the top bar and click "files" You can uncheck "Sidebar" and the sidebar will disappear. Sidebar Option

That should make it look like this. No sidebar If you want to actually remove items from the sidebar you have to edit the user-dirs.dirs file.

Editing the file


Open a terminal and use your go-to file editing program, since I use nano my commands will be based on it.

nano ~/.config/user-dirs.dirs

You will see lines containing

XDG_DESKTOP_DIR="$HOME/Desktop"

and so on for every directory (Documents, Pictures, etc.) For the directories you would like to "remove" you have to change it to point simply at $HOME

XDG_DESKTOP_DIR="$HOME"

After finishing changing whichever directories you want gone, use ctrl-o to "write out" which means save, hit enter to save it, then ctrl-x to exit the editor. After this, logout and log back in After you open files the directories should be gone. (In my test on 17.04 they showed up again as another category underneath where they were previously in the sidebar, simply right clicking and removing them seemed to work across multiple logouts)

I hope this helps.

nullmeta
  • 446
  • 1
  • 3
  • 9