summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorafrantzis <alexandros.frantzis@canonical.com>2017-02-03 03:39:26 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-02 20:39:26 -0500
commit7d049e304e8c9f6478bd3c6dc1781adf21d03e80 (patch)
tree0fb371c11bd7522efb0a5e8083ee6971a343a104 /src/login/logind-session.c
parent2341216ad744b7aee83e54c82c2fb6413258fcc8 (diff)
logind: Don't try to emit a change signal for the 'Sessions' property (#5211)
The 'Sessions' property for both org.freedesktop.login1.User and org.freedesktop.login1.Seat is marked as EmitsChangedSignal(false). Trying to emit a change signal that includes the 'Sessions' property leads to the signal not being sent at all. Fixes #5210.
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index d8bb1ea0a8..fd7fcf7f2c 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -586,12 +586,10 @@ int session_start(Session *s) {
/* Send signals */
session_send_signal(s, true);
- user_send_changed(s->user, "Sessions", "Display", NULL);
+ user_send_changed(s->user, "Display", NULL);
if (s->seat) {
if (s->seat->active == s)
- seat_send_changed(s->seat, "Sessions", "ActiveSession", NULL);
- else
- seat_send_changed(s->seat, "Sessions", NULL);
+ seat_send_changed(s->seat, "ActiveSession", NULL);
}
return 0;
@@ -698,11 +696,10 @@ int session_finalize(Session *s) {
seat_set_active(s->seat, NULL);
seat_save(s->seat);
- seat_send_changed(s->seat, "Sessions", NULL);
}
user_save(s->user);
- user_send_changed(s->user, "Sessions", "Display", NULL);
+ user_send_changed(s->user, "Display", NULL);
return 0;
}