答案1
通过将其粘贴到终端中来编辑 .config/user-dirs.dirs 文件:
gedit ~/.config/user-dirs.dirs
您将看到如下文本:
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DOWNLOAD_DIR="/data/downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="/data/drive"
XDG_MUSIC_DIR="/data/music"
XDG_PICTURES_DIR="/data/pictures"
XDG_VIDEOS_DIR="/data/videos"
XDG_DESKTOP_DIR="/data/desktop"
该XDG_DESKTOP_DIR=
条目应等于您的桌面文件夹(可能是“$HOME/Desktop”)。如果缺少该条目,只需输入并保存文件即可。重新启动后它应该会恢复。