]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: don't include session lists in PropertyChanged messages
authorLennart Poettering <lennart@poettering.net>
Wed, 4 May 2016 17:05:18 +0000 (19:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 May 2016 20:50:09 +0000 (22:50 +0200)
commit91ab7b01f883e75257189f71006ea1e7261a88dd
treef84770763e1544a37a1017d39790970da1f277be
parente11544a8305ab9dea097c74bb16e296150c9cc10
logind: don't include session lists in PropertyChanged messages

If we have a lot of simultaneous sessions we really shouldn't send the full
list of active sessions with each PropertyChanged message for user and seat
objects, as that can become quite substantial data, we probably shouldn't dump
on the bus on each login and logout.

Note that the global list of sessions doesn't send out changes like this
either, it only supports requesting the session list with ListSessions().

If cients want to get notified about sessions coming and going they should
subscribe to SessionNew and SessionRemoved signals, and clients generally do
that already.

This is kind of an API break, but then again the fact that this was included
was never documented.
src/login/logind-seat-dbus.c
src/login/logind-user-dbus.c