My desktop (not the /home/user/Desktop folder) shows the contents of my /home/user folder. I don't know how I have done it and can I have some help on undoing it? The /home/user/Desktop folder just contains my desktop files which do not appear on my desktop.
Asked
Active
Viewed 2.8k times
36
Braiam
- 69,112
The Okay Man
- 575
2 Answers
59
You can change you desktop folder i.e the folder you want to use as your Desktop.
Open the
~/.configfolder. (Press Ctrl+h to show hidden folders.)
Open the
user-dirs.dirsfile in gedit.

Change
XDG_DESKTOP_DIRto the folder you want to show as your Desktop folder. In your case it isXDG_DESKTOP_DIR=$HOME/Desktop
- Now restart nautilus using
nautilus -qorkillall nautilusand again opening it from Dash.
g_p
- 19,034
- 6
- 59
- 69
18
As simply or shortly, You can set default folders with help of xdg-user-dirs-update command.
Run following command in your case:
xdg-user-dirs-update --set DESKTOP "$HOME/Desktop"
Then logout and login back to show/change effect.
From man xdg-user-dirs-update:
NAME
xdg-user-dirs-update - Update XDG user dir configuration
SYNOPSIS
xdg-user-dirs-update [OPTION...] [--set NAME PATH...]
DESCRIPTION
xdg-user-dirs-update updates the current state of the users user-dirs.dir. If none existed before then one is created
based on the system default values, or falling back to the old non-translated filenames if such directories exists. The
list of old directories used are: ~/Desktop, ~/Templates and ~/Public.