[maemo-developers] [maemo-developers] dbus connection refused
From: kurt ak kurt at notenuf.netDate: Tue Jun 27 16:55:30 EEST 2006
- Previous message: [maemo-developers] Developing for IT2006
- Next message: [maemo-developers] dbus connection refused
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. And here's all I do to get the error: gboolean ret; GMainLoop *loop; DBusGConnection *bus; GError *error = NULL; g_type_init(); loop = g_main_loop_new(NULL, FALSE); if( !( bus = dbus_g_bus_get( DBUS_BUS_SYSTEM, &error ) ) ) { fprintf(stderr, "Unable to connect to the system D-BUS: %s\n",error->message); return 1; } many thanks, kurt
- Previous message: [maemo-developers] Developing for IT2006
- Next message: [maemo-developers] dbus connection refused
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]