git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@453
7f574dfc-610e-0410-a909-
a81674777703
#include <dbus/dbus-glib.h>
#include <bmpx/dbus.h>
-
#include <stdio.h>
#include <string.h>
bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
if (bus == NULL) {
ERR("%s\n", error->message);
+ goto fail;
}
remote_object = dbus_g_proxy_new_for_name(bus,
if (!remote_object) {
ERR("%s\n", error->message);
goto fail;
- } else
- connected = 1;
- }
+ }
+ connected = 1;
+ }
+
if (connected == 1) {
if (dbus_g_proxy_call(remote_object, "GetCurrentUri", &error,
G_TYPE_INVALID,