X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-session.c;h=33ab09ea523c0d0ded9723b2293ccfe169e486ff;hb=2c5859afecee81e345fc9526b1083bf79990ffb8;hp=548f049202e9c1baecb2b66ac1830f4e1c62a648;hpb=a0eb2a751c6f3e9c233772cd9af8e8ee1504d27a;p=elogind.git diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 548f04920..33ab09ea5 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -490,7 +490,7 @@ static int session_start_scope(Session *s) { if (!scope) return log_oom(); - r = manager_start_scope(s->manager, scope, s->leader, s->user->slice, description, "systemd-logind.service", "systemd-user-session.service", &error, &job); + r = manager_start_scope(s->manager, scope, s->leader, s->user->slice, description, "systemd-logind.service", "systemd-user-sessions.service", &error, &job); if (r < 0) { log_error("Failed to start session scope %s: %s %s", scope, bus_error_message(&error, r), error.name); @@ -1115,10 +1115,10 @@ static const char* const session_state_table[_SESSION_STATE_MAX] = { DEFINE_STRING_TABLE_LOOKUP(session_state, SessionState); static const char* const session_type_table[_SESSION_TYPE_MAX] = { + [SESSION_UNSPECIFIED] = "unspecified", [SESSION_TTY] = "tty", [SESSION_X11] = "x11", [SESSION_WAYLAND] = "wayland", - [SESSION_UNSPECIFIED] = "unspecified", }; DEFINE_STRING_TABLE_LOOKUP(session_type, SessionType);