On Mon, 2009-12-21 at 15:54 +0000, Richard Hughes wrote: > 2009/12/19 Martin Koegler <mkoeg...@auto.tuwien.ac.at>: > > I notice, that libdevkit-power-gobject will segfault in various > ways, > > if the connection to the system dbus fails > > (devkit-power-gobject/dkp-client.c): > > I think it's pretty fatal if we can't connect to the system DBus. I'm > guessing we should just exit() if that's the case. Thoughts?
I guess returning a GError is better - ie. let the user of the library decide what to do be it exit(), log the error or whatever. Btw, for failable GObject construction, use the GInitable and GAsyncInitable interfaces. Thanks, David _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel