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.
If gconf doesn't work, open your home directory and press Ctrl+H to show hidden files. Look in
.config
foruser-dirs.dirs
and be sure it resembles this:Press Alt + F2 and type/copy:
You probably need to log out and back in again (alternatively, you can run
nautilus -q
to restart just Nautilus).Press alt f2 and type
gksu gconf-editor
and navigate toapps
->nautilus
->preferences
. Have a look at:I think if you run this command:
you'll find:
but it should have
/Desktop
like this:So just run the command
mkdir Desktop
and then change the line in~/.config/user-dirs.dirs
.The other lines should look like this:
This is what helped me
And replaced
XDG_DESKTOP_DIR="$HOME"
withXDG_DESKTOP_DIR="$HOME/Desktop"
Following command works on Ubuntu 12.10.
Some folders in my $HOME such as Desktop and Templates, were always empty and never being used, so I removed them. Then after upgraded from Ubuntu 18.04 to 20.04, all the files and directories including the hidden ones suddenly all displayed on the desktop. As suggested, edit ~/.config/user-dirs.dirs to point the XDG_DESKTOP_DIR back to "$HOME/Desktop". Of cause, do mkdir ~/Desktop, then logout and login back, voilà, everything is good!