Re: g_dbus_proxy_new_for_bus_sync: assertion 'g_variant_is_object_path (object_path)' failed

Germano Massullo <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CAGa=++Tw9FXWukSaqnpb=0uCa18EpP3XupSrBHVhR=LJSXe_4A@mail.gmail.com>
Issue solved!

=== Problem n.1 ===
Line
gchar *object_path = "org/freedesktop/login1";
should be
gchar *object_path = "/org/freedesktop/login1";

=== Problem n.2 ===
Line
g_variant_get (ret, "(^ao)", &user_idle_time);
should be
user_idle_time = g_variant_get_uint64 (ret);
_______________________________________________
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.