Hide userĀ“s folders when they are accidently displayed on the desktop

Jarrinator
  12 years ago
  5

Once the /home/user´s folders where displayed on my desktop, it was annoying angry, they appeared but I didn´t know why; later I realize that I accidently deleted the Desktop folder.

If you delete your Desktop folder, your /home/user´s folders will be displayed on your desktop, so to fix this:

  1. Create a folder called Desktop (it was accidently deleted), insisde your /home/user directory.
  2. In the hidden folder '.config' that is located on the /home/user directory, open the file ' user-dirs.dirs' with a simple text editor
  3. Edit only the following info, and save the file:
  • XDG_DESKTOP_DIR="$HOME/Desktop"
  • XDG_DOWNLOAD_DIR="$HOME/Desktop"
  • XDG_TEMPLATES_DIR="$HOME/Desktop"
  • XDG_PUBLICSHARE_DIR="$HOME/Desktop"
  • XDG_DOCUMENTS_DIR="$HOME/Desktop"
  • XDG_MUSIC_DIR="$HOME/Desktop"
  • XDG_PICTURES_DIR="$HOME/Desktop"
  • XDG_VIDEOS_DIR="$HOME/Desktop"

The file ' user-dirs.dirs'  has been reconfigured so your /home/user´s folders will be moved to their respective Desktop folder, cleaning your desktop and keeping there the original dekstop icons only.

This is a little problem that new userssmiley could have if they accidently delete their Desktop folder in the /home/user directory.

I will be more cereful the next time I delete an importatnt folder.