[maemo-developers] [maemo-developers] dbus connection refused

From: Kalle Vahlman kalle.vahlman at gmail.com
Date: Tue Jun 27 17:23:25 EEST 2006
2006/6/27, kurt ak <kurt at notenuf.net>:
> Hello all, I'm trying to use dbus to connect to a bluetooth device, but I can't
> even seem to get a connection to the bus while in the sandbox.  I have a small
> test application that I wanted to run within scratchbox (0.9.8.7), with the new
> 2.0 rootstrap.
>
> I tried compiling under both of my targets, SDK_PC and SDK_ARMEL, and I get the
>   message when trying to connect, "Failed to connect to socket
> /var/run/dbus/system_bus_socket: Connection refused".
>
> Is it possible to use dbus within scratchbox?  Because actually, i don't get
> this message on the actual device.

Sounds like you are not running the program with "run-standalone.sh
program", it sets up the proper environment variables for dbus etc.

It's not needed on the device if you use the xterm since it inherits
the environment from maemo-af-desktop (but it is needed if you ssh in
the device for example).

-- 
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi

More information about the maemo-developers mailing list