In your desktop environment (GNOME/Unity) and most others, the files and folders on your desktop are really in ~/Desktop
. If you remove that folder, those files will be gone and -- even if you don't care about that -- your desktop won't work properly.
Instead, you will want to change what folder is actually used for your desktop, so that it is no longer ~/Desktop
but something else (perhaps ~/.Desktop
, as you suggested). This cannot be achieved by renaming the folder, because this setting (and most other settings involving files and folders) keeps track of the folder by its name, and not by its inode number.
To cause a folder other than ~/Desktop
to be used as your desktop folder, you can do the reverse of the method given in How can I change the desktop folder path? and How to set the desktop to $HOME/Desktop? (Those questions are oriented to the situation where someone's desktop folder has accidentally gotten changed to something else and the user wants to change it back.)
Create the folder you wish to use. For these instructions, I will suppose you want to use ~/.Desktop
. This is the main step that applies in your case but not in those questions, where the desired folder was ~/Desktop
and already existed.
Open ~/.config/user-dirs.dirs
in a text editor. You don't need to (and should not) edit this as root, or anything. It belongs to your user account.
Find the line that says:
XDG_DESKTOP_DIR="$HOME/Desktop"
Change it to whatever you like. If you want .Desktop
instead of Desktop
, use:
XDG_DESKTOP_DIR="$HOME/.Desktop"
In the rare case that no such line is present in the file, simply add it. It can go anywhere, but I suggest putting it above all the other lines that are not commented out (i.e., that don't start with #
), since that's where it's normally found.
Save the file and close the text editor.
Log out back in. (Rebooting works too, of course, but is unnecessary.)
Verify that the change was successful -- that you see the contents of the new directory on your desktop, and that creating or removing items causes them to be created or removed in the new directory.
Remove, rename, or move the old directory, if desired. You said you don't want to see Desktop
in your home folder. Since at this point it's no longer your desktop folder, you can do whatever you like with it.
These instructions are not specific to Unity and should work with most other graphical interfaces on Ubuntu that implement the desktop metaphor.