我正在自定义我的桌面,plank 是一个非常漂亮的工具,当我尝试通过终端打开 plank 设置时,出现以下错误消息:
root@chess-HP-Laptop-15-bs0xx:~# plank
[WARN 15:37:15.984933] [Environment:165] XDG_SESSION_CLASS not set in this environment!
[WARN 15:37:15.984970] [Environment:183] Neither of XDG_SESSION_DESKTOP, XDG_CURRENT_DESKTOP or DESKTOP_SESSION is set in this environment!
[WARN 15:37:15.985003] [Environment:196] XDG_SESSION_TYPE not set in this environment!
[WARN 15:37:16.254893] [Environment:183] Neither of XDG_SESSION_DESKTOP, XDG_CURRENT_DESKTOP or DESKTOP_SESSION is set in this environment!
root@chess-HP-Laptop-15-bs0xx:~# plank
[WARN 15:31:53.129888] [Environment:165] XDG_SESSION_CLASS not set in this environment!
[WARN 15:31:53.129925] [Environment:183] Neither of XDG_SESSION_DESKTOP, XDG_CURRENT_DESKTOP or DESKTOP_SESSION is set in this environment!
[WARN 15:31:53.129956] [Environment:196] XDG_SESSION_TYPE not set in this environment!
[WARN 15:31:53.405971] [Environment:183] Neither of XDG_SESSION_DESKTOP, XDG_CURRENT_DESKTOP or DESKTOP_SESSION is set in this environment!
如果有人知道我该如何解决这个问题,请他们写信告诉我,非常感谢你们的朋友。:)
答案1
Plank 要求您使用 X Window 系统。在 GNOME 上,Wayland 是自 GNOME 3.22 以来的默认窗口系统。这是原始错误报告。看来这个错误还没有被修复。
您可以尝试在 Xorg 服务器上运行 GNOME。查看此评论以了解如何使用gnome-xorg
登录时,选择用户后,只需单击密码字段下方的齿轮图标并选择“Gnome on Xorg”。然后完成登录。该选择将被保存,将来的登录将默认使用该选择。
或者
编辑文件/var/lib/AccountsService/users/<user_name>
将包含以下内容的行更改XSession=
为:
XSession=gnome-xorg