libmoonshot: use dbus_g_connection_open
authorSam Hartman <hartmans@debian.org>
Thu, 21 Mar 2013 22:30:37 +0000 (18:30 -0400)
committerSam Hartman <hartmans@debian.org>
Thu, 21 Mar 2013 22:54:30 +0000 (18:54 -0400)
commitb9c804c48d1ddb49e7bb78bacfd6e0bec4f5c37c
tree7fdf4217adf2cd1646fbffa059ae4463c7642b78
parentc251ecedb86747cfc148af1c503d908a0a13bf30
libmoonshot: use dbus_g_connection_open

It turns out that opening a bus with dbus_connection_open and then
using dbus_connection_get_g_connection does not actually set up the
type serialization system so nothing works on the resulting bus.
Instead, use g_connections everywhere we can and explicitly get the
real connection for name owner and service start operations.
libmoonshot/libmoonshot-dbus.c