1. We can change the catalogue to English first.
Export Lang=en_us
Perform
Xdg-user-dirs-gtk-update
A configuration interface will be popped up to switch all Chinese user directories to English. Select no longer prompt, OK.
At this point, the user directory without content will be deleted, but the content user directory will remain. and create the appropriate English directory:
Desktop/download/templates/public/documents/music/pictures/videos
At this point, the commonly used Chinese catalogues in the location have been replaced with English catalogues. Simply copy the contents of the original Chinese directory to the appropriate English directory and delete the Chinese catalogue.
And then execute it again.
Export LANG=ZH_CN. UTF-8
To display Chinese.
This article mainly introduces "all Ubuntu files appear on the desktop" or "Ubuntu root directory Chinese folder modified to English name" problems such as solutions.
1. Create a new folder (Customize the folder you want, any name, Chinese English is OK)
Under the home folder, customize the folder you want, and create the appropriate folder, both in Chinese and English. For example: program, Desktop, Joe, Sample, file, and so on.
2. Configure System files
In the terminal, make the following interaction
[HTML] view plain copy sudo gedit ~/.config/user-dirs.dirs [HTML] view plain copy xdg_desktop_dir= "$HOME/corresponding to the name of your new desktop folder"
In turn, add/replace the name of the previous folder with the name of your custom folder.
For example, the following corresponds to my own customized system file configuration
3. Delete the original folder
Now that the system files are configured, the corresponding directory points to your own new folder. Then, delete the original old folder.
4. Reboot the system
After reboot, the problem is resolved