]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: mark the TTY property as "emits change"
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 16 Nov 2023 09:26:45 +0000 (10:26 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 16 Nov 2023 11:26:26 +0000 (11:26 +0000)
Triggered by the SetTTY() method.

Follow-up to 092e6cd19ad.
Addresses: https://github.com/systemd/systemd/pull/30043#pullrequestreview-1733628935

man/org.freedesktop.login1.xml
src/login/logind-session-dbus.c

index ba1614be4e5011f16f65f147762868c83b225d8d..877bf463a07fd5e599f79393aa5f47f8d53d2714 100644 (file)
@@ -1159,7 +1159,6 @@ node /org/freedesktop/login1/session/1 {
       readonly u VTNr = ...;
       @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
       readonly (so) Seat = ...;
-      @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
       readonly s TTY = '...';
       readonly s Display = '...';
       @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
index ad4e5c5f6db32a816152d01b2650b3154b744440..a136ae418cee126d453a84f0f11897a87720b631 100644 (file)
@@ -874,7 +874,7 @@ static const sd_bus_vtable session_vtable[] = {
         BUS_PROPERTY_DUAL_TIMESTAMP("Timestamp", offsetof(Session, timestamp), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("VTNr", "u", NULL, offsetof(Session, vtnr), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("Seat", "(so)", property_get_seat, 0, SD_BUS_VTABLE_PROPERTY_CONST),
-        SD_BUS_PROPERTY("TTY", "s", NULL, offsetof(Session, tty), SD_BUS_VTABLE_PROPERTY_CONST),
+        SD_BUS_PROPERTY("TTY", "s", NULL, offsetof(Session, tty), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
         SD_BUS_PROPERTY("Display", "s", NULL, offsetof(Session, display), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
         SD_BUS_PROPERTY("Remote", "b", bus_property_get_bool, offsetof(Session, remote), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("RemoteHost", "s", NULL, offsetof(Session, remote_host), SD_BUS_VTABLE_PROPERTY_CONST),