Recently I deleted the folder Desktop
from my $HOME
directory. When I logged in again all files and directories in $HOME
were shown on the desktop. So I wanted to get the folder back. What is the recommended way to achieve this? I edited ~/.config/xdg-user-dirs.dir
and added the correct variable. But I guess there must be some other (more easy?) way.
Create a new folder that you want to use as your folder.
For example, type
mkdir ~/Desktop
in a terminal (Ctrl+Alt+T to open one) to create a folder named Desktop in your home directory.Edit your configuration.
Edit the file
~/.config/user-dirs.dirs
. You can do this by opening a terminal, then enter:Change the entry for
XDG_DESKTOP_DIR
to your new desktop folder, or add it, if the entry does not exist. After your edit, the file should look like this:Log out and then log in again and your desktop should show the specified folder.
You can use
xdg-user-dirs-update
command to setDesktop
.But at first check out your locale names
For English locale they are:
You can set any of the above
in order for the changes to take effect
nautilus -q
.For more info check out https://wiki.archlinux.org/index.php/XDG_user_directories
Just create an new folder with the name Desktop.