<DIV> </DIV>
<DIV>I started the session bus and connected to it with the same user. </DIV>
<DIV> </DIV>
<DIV>The commands are: </DIV>
<DIV># dbus-daemon --print-pid --print-address --config-file=/etc/dbus-1/session.conf --fork</DIV>
<DIV># export DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/dbus/session_bus_socket</DIV>
<DIV> </DIV>
<DIV>Whether should I use the system bus instead?</DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></DIV><BR>在2008-01-08,"Thiago Macieira" <thiago@kde.org> 写道:<BR>
<BLOCKQUOTE id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><PRE>On Tuesday 08 January 2008 11:51:49 jinqing17 wrote:
> Hi,
>
> I'm new to dbus programming.
> I have writen an application to receive/send signals by session bus. When
> running, the following message is given.
>
> Connection Error (Did not receive a reply. Possible causes include: the
> remote a pplication did not send a reply, the message bus security policy
> blocked the rep ly, the reply timeout expired, or the network connection
> was broken.)
>
> This error message was send out when invoking dbus_bus_get(). I looked
> through the source of dbus and found it was emitted in
> _dbus_pending_call_set_timeout_error_unlocked(), which is invoked in
> dbus_connection_send_with_reply().
>
> Why did this error exsit? It there something wrong with the bus's
> configuration? Any information is appieciated! Thanks a lot.
Are you connecting to a session bus started by another user?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
</PRE></BLOCKQUOTE><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href="http://event.mail.163.com/chanel/click.htm?from=NO_25&domain=163" target="_blank"><span style="text-decoration:underline; color:blue">网 易 有 道 词 典 -- 全 球 最 强 大 的 免 费 英 汉 互 译 词 典 ( 只 有 2 兆 )</span> </a>