<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>Hello
all,</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>I have successfully
started a session bus with two applications sending and receiving signals.
(Ping Pong)</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>I use the dbus-0.62
package on Red Hat Enterprise 4 which I installed in
/etc</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>To start the session
bus I do the following:</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>1- I kill all other
dbus stuff (running Redhat E4 there is a message bus automatically started which
I kill for my tests)</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>2- execute eval
`dbus-launch --sh-syntax --exit-with-session` in one session where the "Ping"
App runs in </FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>3- export the env
var DBUS_SESSION_BUS_ADDRESS to my second session where the other app (Pong)
runs in</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>4- start both
applications and everything works ok</FONT></SPAN></DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=843051714-11072006><FONT face=Arial size=2>Iīm now trying to do
this over the system bus which in my understanding should be availbale in all
sessions, so I donīt need to export the env var everytime I start the session
bus. </FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>But somehow I get
the same error <FONT size=2>Hobin Yoon reported earlier in his mail to the
list. </FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006><FONT size=2>Iīll do
the following:</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>[root@localhost
tools]# dbus-daemon-1 --system<BR>Failed to start message bus: The pid file
"/var/run/messagebus.pid" exists, if the message bus is not running, remove this
file<BR>[root@localhost tools]# rm /var/run/messagebus.pid <BR>[root@localhost
tools]# dbus-daemon-1 --system <BR>[root@localhost
tools]# ps aux | grep bus<BR>root 11313 0.0
0.2 4004 856 ?
Ss 16:44 0:00 dbus-daemon --fork --print-pid 8
--print-address 6 --session<BR>dbus 11364
0.1 0.3 3456 1228 ?
Ss 16:46 0:00 dbus-daemon-1
--system<BR>root 11366 0.0 0.1
5036 712 pts/0 S+ 16:46 0:00
grep bus<BR>[root@localhost tools]# ./dbus-monitor --system<BR>Failed to open
connection to system message bus: Failed to connect to socket
/usr/local/var/run/dbus/system_bus_socket: No such file or
directory<BR>[root@localhost tools]#</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>Pretty much the same
happens when I try to start my test apps. They also fail to open the
connection with the error.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>[root@localhost
debug]# ps aux | grep bus<BR>root 11313 0.0
0.2 4004 856 ?
Ss 16:44 0:00 dbus-daemon --fork --print-pid 8
--print-address 6 --session<BR>dbus 11364
0.0 0.3 3456 1228 ?
Ss 16:46 0:00 dbus-daemon-1
--system<BR>root 11400 0.0 0.1
5852 712 pts/1 S+ 17:07 0:00
grep bus<BR>[root@localhost debug]# ./dbusPing test.bus.dj 500 Hello<BR>Read the
following: argc <4><BR>Name <test.bus.dj> <BR>MsgSize
<500><BR>Msg<Hello><BR>Connection Error (Unable to determine the
address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for
help))<BR>DBus: dbus_bus_get NOT OK, exiting <BR>MAIN - NACH get_bus<BR>exit in
get_bus<BR>[root@localhost debug]# </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006></SPAN></FONT><FONT
face=Arial size=2><SPAN class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>So, as I have read
in the archive and the last mail from Havoc Pennington to Hobin Yoon, that
itīseems that dbus-monitor was build with a different prefix,I have tried to
rebuild dbus-monitor in my /etc/dbus-0.62/tools path. Before doing this I
changed the following in the Makefile in the tools
directory:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006>#DBUS_SYSTEM_BUS_DEFAULT_ADDRESS =
unix:path=/usr/local/var/run/dbus/system_bus_socket<BR>DBUS_SYSTEM_BUS_DEFAULT_ADDRESS
= unix:path=/var/run/dbus/system_bus_socket<BR>#DBUS_SYSTEM_PID_FILE =
/usr/local/var/run/messagebus.pid<BR>DBUS_SYSTEM_PID_FILE =
/var/run/messagebus.pid<BR>#DBUS_SYSTEM_SOCKET =
/usr/local/var/run/dbus/system_bus_socket<BR>DBUS_SYSTEM_SOCKET =
/var/run/dbus/system_bus_socket</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>But unfortunately
this doesnīt work.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>I have also tried to
change this <listen> path in the system.conf to the
"/var/run/dbus/system_bus_socket" directoy, but there is no
change.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>Iīm a bit stuck at
the momemt and it seems I havenīt understood the principle
yet.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>My question would
be: What am I doing wrong and how do I need to start a system bus that my
apps are able to find the address of the message bus?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>I have searched the
list archive already but could not find a useful hint
yet.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>Every hint is very
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843051714-11072006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>Many thanks for your
help in advance and regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006>Dennis
Jehne</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843051714-11072006></SPAN></FONT><FONT
face=Arial size=2><SPAN class=843051714-11072006></SPAN></FONT><FONT face=Arial
size=2><SPAN class=843051714-11072006></SPAN></FONT><FONT face=Arial
size=2><SPAN class=843051714-11072006></SPAN></FONT> </DIV></BODY></HTML>