wicd是Linux下非常好用的网络链接管理器,最近这个小程序升级到了1.6版本,随之出现了其客户端程序无法在X下启动的问题,如果在shell下运行wicd-client会出现类似下面的错误信息:
ERROR:dbus.proxies:Introspect error on :1.5:/org/wicd/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.17" (uid=1000 pid=22386 comm="python -O /usr/lib/wicd/wicd-client.py ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.5" (uid=0 pid=4867 comm="python -O /usr/lib/wicd/wicd-daemon.py "))
warning: ignoring exception org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.17" (uid=1000 pid=22386 comm="python -O /usr/lib/wicd/wicd-client.py ") interface="org.wicd.daemon" member="GetConnectionStatus" error name="(unset)" requested_reply=0 destination=":1.5" (uid=0 pid=4867 comm="python -O /usr/lib/wicd/wicd-daemon.py "))
warning: ignoring exception org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.17" (uid=1000 pid=22386 comm="python -O /usr/lib/wicd/wicd-client.py ") interface="org.wicd.daemon" member="GetNeedWiredProfileChooser" error name="(unset)" requested_reply=0 destination=":1.5" (uid=0 pid=4867 comm="python -O /usr/lib/wicd/wicd-daemon.py "))
在网上搜了一下,找到了下面的解决方法,经过我的实验,证明可行:
编辑/etc/dbus-1/system.d/wicd.conf文件,找到下面的行:
将其中的user=root改为user=你的登录用户名,或者改为group=xxx,xxx是你的用户所属的组名,比如wheel,改完保存后重启hal服务,再启动wicd-client就成功了。