Ubuntu Desktop is deleted or the home file is run to the desktop.
1. All the home files under ubutnu run to the desktop:
When using ubuntu, you may encounter some problems, such:
Icon.
(Note: This is an icon, in the home folder) is deleted, so that all the content in the home folder appears on the desktop after the system is restarted, this is unacceptable for people who prefer clean desktops. I was not careful when using the rm-rf command. My hands were too fast and the entire desktop was deleted. Note that there was a desktop, but there was no desktop icon or option.
2. All the home files under ubutnu run to the desktop:
3. The desktop under ubutnu is deleted:
4. What is the problem of desktop switch in English and Chinese versions under ubutnu:
The preceding unified solution:
Step 1: Open the terminal on the desktop and cd it to your home folder.
Step 2: ls-la shows hidden files and folders
Step 3: Find the user-dirs.dirs in the. config folder:
Note: The graph is borrowed from someone else, and the final vim user-dirs.dirs is changed:
Sudo gedit user-dirs.dirs
Step 4: Change the folder name, as shown in the following figure. (Note: if your folder name is in English, change it to English. It is best to ensure that all the input folders appear on the desktop ), if you are in Chinese, you can write Chinese.
Step 5: Note !!! This is where it is. At this time, you need to create a folder named Desktop under the/home path (or Desktop Folder !!!) Otherwise, the above method is invalid!
Step 6: Enter reboot to restart the terminal, or manually restart ubuntu. You will find that your desktop is back.
Translation:
# This file is written by xdg-user-dirs-update.
# If you want to change or add a directory, you only need to edit your line
# Interested. All local changes will be retained at next run
# The format is XDG_xxx_DIR = "$ HOME/yyy", where yyy is escaped by shell.
# Relative Path of homedir, or XDG_xxx_DIR = "/yyy", where/yyy is
# Absolute path. Other formats are not supported.
Another problem is that you are a desktop in English or Chinese. You want to change it to Chinese or English.
The same tutorial step 3rd, but find the need to open the user-dirs.locale file, after: Want to change why write in what corresponding code.
Chinese: zh_CN
English: zh_en