Linux Desktop Folder Setup Guide
In Linux systems, you can set the desktop folder by modifying the configuration file in the user’s home directory. The specific steps are as follows:
- Open the terminal and enter the following command to edit the user’s configuration file (using “username” as an example):
gedit /home/username/.config/user-dirs.dirs
- Change the corresponding Desktop item in the file to the folder path you desire, for example:
XDG_DESKTOP_DIR="$HOME/Documents/Desktop"
- Save the file and close the editor.
- Please log in again or restart your computer to apply these changes.
In this way, when you create a new file on the desktop or download a file, they will be saved in the designated folder on your desktop.