g_dbus_proxy_new_for_bus_sync: assertion 'g_variant_is_object_path (object_path)' failed

Germano Massullo germano.massullo at gmail.com
Tue May 21 15:44:25 UTC 2019


I am implementing some code (in attachment) that should retrieve
systemd-logind `IdleSinceHint` property exposed on DBus, but when it
is runned it fails on assertion `g_assert (proxy != NULL);` with error

    (process:9059): GLib-GIO-CRITICAL **: 17:29:07.245:
g_dbus_proxy_new_for_bus_sync: assertion 'g_variant_is_object_path
(object_path)' failed
    **
    ERROR:print_user_idle_time.c:44:main: assertion failed: (proxy != NULL)

What can be the problem?
Thank you for your time
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_user_idle_time.c
Type: text/x-csrc
Size: 1347 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20190521/2f6d71f7/attachment.c>


More information about the dbus mailing list