summaryrefslogtreecommitdiff
path: root/src/logind-session.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 03:52:22 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 03:52:22 +0200
commit7f7bb9467931e855cdf5ec46e53c8eb46aa778f5 (patch)
tree901641661ffcfaa8258be65c225065b2b9c2a599 /src/logind-session.c
parent30ed21ceb133173c849151c9fd6848bb34bb29bf (diff)
logind: implement SetUserLinger() D-Bus call
Diffstat (limited to 'src/logind-session.c')
-rw-r--r--src/logind-session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logind-session.c b/src/logind-session.c
index 8e35e09069..d68423bdcf 100644
--- a/src/logind-session.c
+++ b/src/logind-session.c
@@ -328,7 +328,6 @@ int session_activate(Session *s) {
return seat_apply_acls(s->seat, old_active);
}
-
static int session_link_x11_socket(Session *s) {
char *t, *f, *c;
size_t k;
@@ -520,10 +519,13 @@ int session_start(Session *s) {
/* Save session data */
session_save(s);
+ user_save(s->user);
session_send_signal(s, true);
if (s->seat) {
+ seat_save(s->seat);
+
if (s->seat->active == s)
seat_send_changed(s->seat, "Sessions\0ActiveSession\0");
else