DBus connect problems during dbus_g_bus_get

Steve Kreyer steve.kreyer at web.de
Mon Sep 10 08:50:27 PDT 2007


Ok I've got the solution. I have to export DBUS_SESSION_BUS_ADDRESS to
the output of $(dbus-daemon* --print-address) and export
DBUS_SESSION_BUS_PID to $(dbus-daemon* --print-pid)

*)) same session instance

Thanks for your help and time!

Regards,
Steve

Steve Kreyer wrote:
> Thiago Macieira wrote:
>   
>> On Monday 10 September 2007 15:48:46 Steve Kreyer wrote:
>>   
>>     
>>> Hi Thiago,
>>>
>>> I wonder because theres a dbus deamon already running when I try to
>>> execute the application:
>>>   $ ps aux
>>>     1 root     init
>>>   918 root     /sbin/klogd
>>>   957 root     /usr/sbin/sshd
>>>   961 root     /tmp/gtk_fb/bin/dbus-daemon --system
>>>     
>>>       
>> That's the system bus daemon.
>>
>> You're missing the session bus daemon.
>>     
> This results in the same error message:
>
> slind:~$ /tmp/gtk_fb/bin/dbus-daemon --session --fork
> slind:~$ ps aux
> PID   USER     COMMAND
>     1 root     init     
> ...
>   984 root     /usr/sbin/sshd
>   999 root     /bin/ash --login
>  1003 root     sshd: root at pts/0 
>  1005 root     -sh
>  1021 root     /tmp/gtk_fb/bin/dbus-daemon --session
>  1022 root     ps aux
> slind:~$ /tmp/gtk_fb/bin/auxin-player-slave
>
> ** ERROR **: Failed to get on the bus: dbus-launch failed to autolaunch
> D-Bus session: Autolaunch error: X11 initialization failed.
>
> Regards,
> Steve
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070910/c8664b6f/attachment.bin 


More information about the dbus mailing list