Re: dbus_bus_get_private return NULL but with no error set

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <23331450.qhAoWSXSFa@tjmaciei-mobl1>
Em segunda-feira, 24 de abril de 2017, às 12:55:12 -03, prashantkumar dhotre 
escreveu:
> I dont think any issues is there in my code below:
> 
> DBusError error;
> dbus_error_init(&error);
> conn = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error);
>  if (conn == NULL) {
>      ERROR("Failed to open connection to system bus\n");
>      if (dbus_error_is_set (&error)) {
>          ERROR("dbus_bus_get_private() failed with error: %s\n",
> error.message); }
>     assert(0);
> }

Is the system bus even running on your system? 

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.