Sometime after you do something on your Linux (such as distribution upgrade), your Gnome desktop will turn into black color and showing nothing. If you create anything on the black desktop, it will actually go to your home directory.
This indicates your desktop path is point to your home directory instead of your desktop directory, to solve this problem:
~/.config/users.dirs.dirswith your favorite editor (aware that
- Look for the keyword
XDG_DESKTOP_DIR, it might point to
$HOME. Edit it to
- Log out and log in again to see the changes.