[systemd-devel] sd-bus vs glib object path node hierarchy
David Herrmann
dh.herrmann at gmail.com
Wed Jun 17 00:45:15 PDT 2015
Hi
On Tue, Jun 16, 2015 at 11:32 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Tue, 16.06.15 22:54, Krzesimir Nowak (krzesimir at endocode.com) wrote:
>> That reminds me of a bug (or not-a-bug) in go-dbus [1] - it also generates
>> flat hierarchy. This is a problem for tools like d-feet - they fail to
>> introspect services with flat hierarchy. Of course, it might be a bug in
>> d-feet itself.
>>
>> [1] https://github.com/godbus/dbus/issues/14
>
> Unless I misunderstand this sd-bus and go-dbus actually work very
> differently here: sd-bus actually synthesizes an object and suppresses
> it in the introspection. go-dbus doesn't even synthesize it. That
> means that if d-feet asks the intermediary objects on an sd-bus server
> all is good even if the service will never announce it voluntarily...
>
> I also just verified that d-feet works fine with sd-bus services.
Maybe someone can fix d-feet to do what `busctl tree` does? That is,
if introspection for '/' returns a node at '/foo/bar' then better
continue at '/foo/bar' instead of '/foo'. Not sure why d-feet chops
those paths off?
Thanks
David
More information about the systemd-devel
mailing list