Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   org.freedesktop.login1    ( 5 )

интерфейс D-Bus системы d-logind (The D-Bus interface of systemd-logind)

  Name  |  Introduction  |  The manager object  |    Seat objects    |  User objects  |  Session objects  |  Examples  |  Versions  |  Note  |

SEAT OBJECTS

node /org/freedesktop/login1/seat/seat0 {
             interface org.freedesktop.login1.Seat {
               methods:
                 Terminate();
                 ActivateSession(in  s session_id);
                 SwitchTo(in  u vtnr);
                 SwitchToNext();
                 SwitchToPrevious();
               properties:
                 @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
                 readonly s Id = '...';
                 readonly (so) ActiveSession = ...;
                 @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
                 readonly b CanTTY = ...;
                 readonly b CanGraphical = ...;
                 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
                 readonly a(so) Sessions = [...];
                 readonly b IdleHint = ...;
                 readonly t IdleSinceHint = ...;
                 readonly t IdleSinceHintMonotonic = ...;
             };
             interface org.freedesktop.DBus.Peer { ... };
             interface org.freedesktop.DBus.Introspectable { ... };
             interface org.freedesktop.DBus.Properties { ... };
           };

Methods Terminate() and ActivateSession() work similar to TerminateSeat(), ActivationSessionOnSeat() on the Manager object.

SwitchTo() switches to the session on the virtual terminal vtnr. SwitchToNext() and SwitchToPrevious() switch to, respectively, the next and previous sessions on the seat in the order of virtual terminals. If there is no active session, they switch to, respectively, the first and last session on the seat.

Signals Whenever ActiveSession, Sessions, CanGraphical, CanTTY, or the idle state changes, PropertyChanged signals are sent out to which clients can subscribe.

Properties The Id property encodes the ID of the seat.

ActiveSession encodes the currently active session if there is one. It is a structure consisting of the session id and the object path.

CanTTY encodes whether the session is suitable for text logins, and CanGraphical whether it is suitable for graphical sessions.

The Sessions property is an array of all current sessions of this seat, each encoded in a structure consisting of the ID and the object path.

The IdleHint, IdleSinceHint, and IdleSinceHintMonotonic properties encode the idle state, similar to the ones exposed on the Manager object, but specific for this seat.