summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index 11b3a65b64..5663aeea4b 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -117,27 +117,20 @@ int seat_save(Seat *s) {
if (s->sessions) {
Session *i;
- fputs("OTHER=", f);
+ fputs("SESSIONS=", f);
LIST_FOREACH(sessions_by_seat, i, s->sessions) {
- if (i == s->active)
- continue;
-
fprintf(f,
"%s%c",
i->id,
i->sessions_by_seat_next ? ' ' : '\n');
}
- fputs("OTHER_UIDS=", f);
- LIST_FOREACH(sessions_by_seat, i, s->sessions) {
- if (i == s->active)
- continue;
-
+ fputs("UIDS=", f);
+ LIST_FOREACH(sessions_by_seat, i, s->sessions)
fprintf(f,
"%lu%c",
(unsigned long) i->user->uid,
i->sessions_by_seat_next ? ' ' : '\n');
- }
}
fflush(f);