XFCE 登录错误:无法加载故障安全会话

Gre*_*n23 3 xfce arch-linux xdg xfce4

我在 Arch Linux 下登录 xfce 时遇到问题。


问题:
登录后(像我通常那样使用 Slim),我收到以下错误消息:

Unable to load a failsafe session
Unable to determine failsafe session name. Possible causes xconfd isn't running (D-Bus setup problem);
environment variable $XDG_CONFIG_DIRS is set incorrectly (must include "/etc") or xfce4-session is installed incorrectly.
Run Code Online (Sandbox Code Playgroud)


无效的修复:
我在 Google 上找到了这些修复,但没有一个对我有用。
1. 确保$XDG_CONFIG_DIRS设置正确:

export XDG_CONFIG_DIRS=/etc/xdg
Run Code Online (Sandbox Code Playgroud)

2. 确保我的主目录中的所有内容都具有正确的权限:

sudo chown -R $USER $HOME
Run Code Online (Sandbox Code Playgroud)

3. 更改权限/etc/xdg:(
我后来意识到这一定是一个旧的修复,因为 Arch 建议755权限/etc/xdg,而不是 644)

sudo chmod 644 /etc/xdg
Run Code Online (Sandbox Code Playgroud)

4.尝试手动启动xfce会话:(
因为这不起作用,我知道问题出在xfce而不是SLIM)

startxfce4
Run Code Online (Sandbox Code Playgroud)

5. 重新安装所有 xfce 应用程序:

yaourt -Sa $(yaourt -Qsq xfce) 
Run Code Online (Sandbox Code Playgroud)

6. 删除 xfce 配置,然后重新安装所有内容(以确保将 xfce 设置重置为默认值)

mv ~/.config/xfce ~/.config/xfce.bak
yaourt -Sa $(yaourt -Qsq xfce)
Run Code Online (Sandbox Code Playgroud)

7. 删除会话缓存:

rm -r ~/.cache/sessions/
Run Code Online (Sandbox Code Playgroud)


yaourt -Qsq xfce如果可以, 我会列出输出,但我需要登录到我的计算机才能复制和粘贴它。

小智 6

工作的方式对我来说是更换exec startxfce 4dbus-launch xfce4-session

xstartup文件如下所示:

 #!/bin/sh
 unset SESSION_MANAGER
 unset DBUS_SESSION_BUS_ADDRESS
 dbus-launch xfce4-session
Run Code Online (Sandbox Code Playgroud)