chiark / gitweb /
logind: hide 'self' links if not available
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 18 Jan 2015 11:59:39 +0000 (12:59 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 18 Jan 2015 11:59:39 +0000 (12:59 +0100)
commitca56b0a68300b035c605bedc5b339128897debfc
treeb28a9af6a18fdecd0a1db0927322734b65a2285f
parent7447362c530e3f7128f16a35d1e43da4251144cc
logind: hide 'self' links if not available

If the caller does not run in a session/seat or has no tracked user, hide
the /org/freedesktop/login1/.../self links in introspection data.
Otherwise, "busctl tree org.freedesktop.login1" tries to query those nodes
even though it cant.
src/login/logind-seat-dbus.c
src/login/logind-session-dbus.c
src/login/logind-user-dbus.c