昨天把家目录里的所有东西误删了,原来的Downloads Templates Documents ….都没有了。下面是如何重新建立:
Create a new folder that you want to use as your folder,
e.g 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
gedit ~/.config/user-dirs.dirs.
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:
XDG_DESKTOP_DIR=”HOME/Desktop”XDGDOWNLOADDIR=”HOME/Download”
XDG_TEMPLATES_DIR=”HOME/Templates”XDGPUBLICSHAREDIR=”HOME/Public”
XDG_DOCUMENTS_DIR=”HOME/Documents”XDGMUSICDIR=”HOME/Music”
XDG_PICTURES_DIR=”HOME/Pictures”XDGVIDEOSDIR=”HOME/Videos”`
Log out and then log in again and your desktop should show the specified folder.