错误:无法在没有X11 $ DISPLAY的情况下自动启动D-Bus
我迫切需要将Compiz重置为其默认设置,因为我的桌面没有显示Dash或菜单栏。
当我输入:
dconf reset -f /org/compiz/
它说:
error: Cannot autolaunch D-Bus without X11 $DISPLAY Usage: dconf reset [-f] PATH Reset a key or a dir. -f is required for dirs. Arguments: PATH Either a KEY or DIR KEY A key path (starting, but not ending with '/') DIR A directory path (starting and ending with '/')
接下来做什么?
最好的祝福
export DISPLAY=:0.0
如果你看到
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error: Can't open display: :0.0
然后
xhost +
您可以使用tty中的以下命令替换当前的compiz实例。
DISPLAY=:0 compiz --replace
您也可以这样做:
DISPLAY=:0 dconf reset -f /org/compiz/