Ubuntu 21.04 Nautilus 侧边栏桌面图标丢失

Sha*_*ram 6 nautilus

已经问过很多次了,但没有一个解决方案对我有帮助。我从 20.10 更新,现在缺少 Nautilus 侧边栏桌面图标。

在此处输入图片说明

这是我的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_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
Run Code Online (Sandbox Code Playgroud)

我知道我可以添加书签,desktop但我不想那样做,我只想让桌面回到之前的位置。

San*_* FN 3

更新: 这是发生在 Wayland会话中的 GTK 3 错误,Wayland 会话现在是(Ubuntu 21.04)默认显示服务器。使用 X11 会话时,您仍然可以看到该文件夹​​。

原始答案:我也遇到同样的问题。我尝试了很多东西(检查user-dirs.dirs、 exec xdg-user-dirs-update等),但似乎没有什么可以解决这个问题。我认为这是随 Ubuntu 21.04 (nautilus 1:3.38.2-1ubuntu2) 分发的 Files 版本中的一个错误,因此我在 Launchpad 中提交了一个错误


小智 3

按 Ctrl+Shift+t 打开终端并输入nautilus ~/Desktop。这将在桌面目录中打开 Nautilus(另一种方法是在家里的 Nautilus 中搜索它)。如果~/Desktop不存在,则创建一个桌面目录touch ~/Desktop

使用 Ctrl+d,当前目录(桌面)应添加到侧边栏。