On 8/9/23 17:48, Elsie Hupp wrote:
Note: I am on elementaryOS 6.0. I am trying to generate a vala interface from the Systemd DBus interface, following the example here to get the XML to feed into `vala-dbus-binding-tool`: https://wiki.gnome.org/Projects/Vala/DBusClientSamples But I am getting the following error: ```bash $ dbus-send --print-reply --type=method_call --dest=org.freedesktop.systemd1 objectpath org.freedesktop.DBus.Introspectable.Introspect dbus[208973]: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file ../../../dbus/dbus-message.c line 1366. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Aborted (core dumped)
You need to specify a valid object path as well: $ dbus-send --print-reply --type=method_call --dest=org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.DBus.Introspectable.Introspect method return time=1691596947.228708 sender=:1.1 -> destination=:1.862 serial=15362 reply_serial=2 string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "https://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node> <interface name="org.freedesktop.DBus.Peer"> ...
``` I tried with a specific interface, as well: ```bash $ dbus-send --print-reply --type=method_call --dest=org.freedesktop.systemd1.Device objectpath org.freedesktop.DBus.Introspectable.Introspect dbus[164720]: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file ../../../dbus/dbus-message.c line 1366. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Aborted ``` I did several web searches of the error messages, and none of them were particularly helpful. How do I get the XML for the Systemd DBus interface? Is there a way I can work around this error, or is there a copy available somewhere online?
-- PGP Key ID: 0xFB738CE27B634E4B
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature