我在 Arch Linux 下登录 xfce 时遇到问题。
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)
$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) …
当我使用命令为 Thunar 制作自定义命令时xfce4-terminal -x
,有时我想查看命令的终端输出。如何在命令运行后防止终端关闭?
我试过这些:
xfce4-terminal -x COMMAND &
xfce4-terminal -x COMMAND && read -p
xfce4-terminal -x COMMAND && read -p '' foo
Run Code Online (Sandbox Code Playgroud)
他们没有工作。奇怪的是,它不会运行read
命令。它说:
无法执行子进程“读取”(没有这样的文件或目录)