From 01942823aeed0e8138dc16ef71f7e77b2af2215d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 5 May 2022 10:50:26 +0200 Subject: [PATCH] man: beef up o.fd.login1 page a bit and recommend busctl too gdbus is an external program, so it makes sense to recommend busctl. --- man/org.freedesktop.login1.xml | 38 +++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/man/org.freedesktop.login1.xml b/man/org.freedesktop.login1.xml index 8fc145d771..aa8973b813 100644 --- a/man/org.freedesktop.login1.xml +++ b/man/org.freedesktop.login1.xml @@ -1415,27 +1415,46 @@ node /org/freedesktop/login1/session/1 { Examples - Introspect <interfacename>org.freedesktop.login1.Manager</interfacename> on the bus + Introspect the logind manager on the bus $ gdbus introspect --system --dest org.freedesktop.login1 \ --object-path /org/freedesktop/login1 - - - Introspect <interfacename>org.freedesktop.login1.Seat</interfacename> on the bus + or - $ gdbus introspect --system --dest org.freedesktop.login1 \ - --object-path /org/freedesktop/login1/seat/seat0 + $ busctl introspect org.freedesktop.login1 /org/freedesktop/login1 - Introspect <interfacename>org.freedesktop.login1.User</interfacename> on the bus + Introspect the default seat on the bus + + $ gdbus introspect --system --dest org.freedesktop.login1 \ + --object-path /org/freedesktop/login1/seat/seat0 + + + or + + $ busctl introspect org.freedesktop.login1 /org/freedesktop/login1/seat/seat0 + + + Seat seat0 is the default seat, so it'll be present unless local configuation + is made to reassign all devices to a different seat. The list of seats and users can be acquired with + loginctl list-sessions. + + + + Introspect a single user on the bus $ gdbus introspect --system --dest org.freedesktop.login1 \ --object-path /org/freedesktop/login1/user/_1000 + + or + + $ busctl introspect org.freedesktop.login1 /org/freedesktop/login1/user/_1000 + @@ -1444,6 +1463,11 @@ node /org/freedesktop/login1/session/1 { $ gdbus introspect --system --dest org.freedesktop.login1 \ --object-path /org/freedesktop/login1/session/45 + + or + + $ busctl introspect org.freedesktop.login1 /org/freedesktop/login1/session/45 +