Restore your Desktop folder in Ubuntu

If u you have accidentally deleted the Desktop folder, it will be placed in Trash. Unfortunately you can't restore to the actual location. Don't worry. Try this steps and you can restore it to the existing location(recommended) or even you can change the location.

1) gedit ~/.config/user-dirs.dirs
2) Make sure your XDG_DESKTOP_DIR="$HOME/Desktop"

This is how standard settings will be :-

3) Restart your machine.

Thats All. Done


Dont require restart, only logout session

Thanks Tonin R. Bolzan