Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As of now, my desktop has begun showing the contents of my home folder (~) instead of the contents of ~/desktop. I must have changed something, but I have no idea what, or what I was doing exactly when it happened.

How do I re-point gnome to the right folder?

I'm running Ubuntu 11.04.

share|improve this question
add comment

6 Answers 6

up vote 13 down vote accepted

If gconf doesn't work, open your home directory and press Ctrl + H to show hidden files. Look in .config for user-dirs.dirs and bee sure it resembles this:

XDG_DESKTOP_DIR="$HOME/Desktop"

XDG_DOWNLOAD_DIR="$HOME/Downloads"

XDG_TEMPLATES_DIR="$HOME/Templates"

XDG_PUBLICSHARE_DIR="$HOME/Work"

XDG_DOCUMENTS_DIR="$HOME/Documents"

XDG_MUSIC_DIR="$HOME/Music"

XDG_PICTURES_DIR="$HOME/Pictures"

XDG_VIDEOS_DIR="$HOME/Videos"

share|improve this answer
    
Great! This was exactly what I was looking for! –  Tomas Lycken May 22 '11 at 23:59
add comment

Press Alt + F2 and type/copy:

gconftool-2 --set --type bool /apps/nautilus/preferences/desktop_is_home_dir false

You probably need to log out and back in again (alternatively, you can run nautilus -q to restart just Nautilus).

share|improve this answer
    
An upvote for the hint on nautilus -q =) –  Tomas Lycken May 23 '11 at 0:00
    
Much easier to do it this way. –  wojox Sep 28 '13 at 12:30
add comment

Press alt f2 and type gksu gconf-editor and navigate to apps -> nautilus -> preferences. Have a look at:

im2

share|improve this answer
1  
This didn't solve my problem - the option was already set to false. –  Tomas Lycken May 22 '11 at 23:59
add comment

you should try xdg-user-dirs-update command. It will restore all well known user dirs (documents, desktop, etc)

share|improve this answer
add comment

gconftool-2 --set --type bool /apps/nautilus/preferences/desktop_is_home_dir false

This was what worked on my 12.10

share|improve this answer
add comment

i think if you run this command : vim .config/user-dirs.dirs

you ll find

XDG_DESKTOP_DIR="$HOME/Desktop" but without /Desktop ... just mkdir Desktop then add the directory to the path .. its happened with me and its work .. best wishes

XDG_DOWNLOAD_DIR="$HOME/Downloads"

XDG_TEMPLATES_DIR="$HOME/Templates"

XDG_PUBLICSHARE_DIR="$HOME/Work"

XDG_DOCUMENTS_DIR="$HOME/Documents"

XDG_MUSIC_DIR="$HOME/Music"

XDG_PICTURES_DIR="$HOME/Pictures"

XDG_VIDEOS_DIR="$HOME/Videos"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.