summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-04-09 21:22:48 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-04-09 21:22:48 +0200
commit9541666b8d97f107335dd7e3cb93b4d2cfbf19c9 (patch)
tree4c4b424ca5c6c73286a623a18020e1711cbe3c24 /src/login
parent13468826f2457cae45a79649e122deadb9dc9774 (diff)
login: add 'mir' to the list of session types
Add Mir to the list of session types. This is implemented for LightDM in lp:~robert-ancell/lightdm/xdg-session-desktop [1]. [1] https://code.launchpad.net/~robert-ancell/lightdm/xdg-session-desktop/+merge/214108 (david: adjusted commit-header and fixed whitespace issues)
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-session.c1
-rw-r--r--src/login/logind-session.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 4ca6b5d805..b4fd349f00 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -1117,6 +1117,7 @@ static const char* const session_type_table[_SESSION_TYPE_MAX] = {
[SESSION_TTY] = "tty",
[SESSION_X11] = "x11",
[SESSION_WAYLAND] = "wayland",
+ [SESSION_MIR] = "mir",
};
DEFINE_STRING_TABLE_LOOKUP(session_type, SessionType);
diff --git a/src/login/logind-session.h b/src/login/logind-session.h
index c9af5ebe0d..7ecc9f0d4f 100644
--- a/src/login/logind-session.h
+++ b/src/login/logind-session.h
@@ -55,6 +55,7 @@ typedef enum SessionType {
SESSION_TTY,
SESSION_X11,
SESSION_WAYLAND,
+ SESSION_MIR,
_SESSION_TYPE_MAX,
_SESSION_TYPE_INVALID = -1
} SessionType;