diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-09 22:18:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-09 22:18:16 +0200 |
commit | e2acb67baaa1d63685dcaf80becf10291f13d086 (patch) | |
tree | b80a3d73584f350db6de7690ebae3d6911ef906f /src/login/logind-session.c | |
parent | 05d0c3e1fde1794b26afc572ad1acfe52048ecba (diff) |
logind: introduce an explicit session class for cronjobs and similar
cronjobs are neither interactive user session, nor lock screens, nor
login screens, hence they should get their own class.
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 97c24d094b..508336d4d3 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -1056,7 +1056,8 @@ DEFINE_STRING_TABLE_LOOKUP(session_type, SessionType); static const char* const session_class_table[_SESSION_CLASS_MAX] = { [SESSION_USER] = "user", [SESSION_GREETER] = "greeter", - [SESSION_LOCK_SCREEN] = "lock-screen" + [SESSION_LOCK_SCREEN] = "lock-screen", + [SESSION_BACKGROUND] = "background" }; DEFINE_STRING_TABLE_LOOKUP(session_class, SessionClass); |