Fix some abuses of the D-Bus API
authorSteven Luo <steven+maemo@steven676.net>
Fri, 5 Feb 2010 07:32:27 +0000 (23:32 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Fri, 5 Feb 2010 07:32:27 +0000 (23:32 -0800)
commit3daedfe0947a34de6fea7378a10b166ddb934f98
treed72836aace643a43ae77c62702b261ff18ea8258
parentd8d8d1ed9bd347c8bf6c21e66eba7bf3c5c2b2b1
Fix some abuses of the D-Bus API

dbus_g_proxy_call() needs two G_TYPE_INVALIDs in the arguments, one to
terminate the list of input variables and one to terminate the list of
output variables.  This was causing an error, which we were ignoring;
now that we don't get an error every time, print the error message and
exit instead of continuing silently in the face of errors.

Also, make sure the dbus_g_proxy_new_for_name() call succeeds, instead
of potentially passing a NULL tear_proxy to dbus_g_proxy_call().
launcher.c