7/23/2009

xfce desktop 起不来

最近升级系统之后桌面没了,发现 xfdesktop 没有起来,于是手动运行,但报以下错误:
xfdesktop[5225]: starting up
process 5225: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed in file dbus-connection.c line 3301.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace

在网上搜了一圈,发现需要添加 /etc/dbus-1/system.d/nasz-user.conf:

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
        <policy user="dev">
            <allow send_destination="org.freedesktop.Hal"
                  send_interface="org.freedesktop.Hal.Device"/>
            <allow send_destination="org.freedesktop.Hal"
                  send_interface="org.freedesktop.Hal.Manager"/>
        </policy>
</busconfig>

其中 dev 改为实际用户名,然后重启 dbus
/etc/init.d/dbus restart

再运行 xfdesktop & 即可。

没有评论: