summaryrefslogtreecommitdiff
path: root/src/logind-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-26 23:09:34 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-26 23:09:34 +0200
commitbbc732830876ce75a95c57ccf8677f74e4569efc (patch)
treeb8b35c136ae14e4657724515077cf63e5761e9c9 /src/logind-dbus.c
parentadd30678a1bf284ecd79438d219c45ca7a1c9f51 (diff)
pam: set XDG_SEAT and XDG_VTNR when logging in
Diffstat (limited to 'src/logind-dbus.c')
-rw-r--r--src/logind-dbus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logind-dbus.c b/src/logind-dbus.c
index 035847c622..b8f7d6718b 100644
--- a/src/logind-dbus.c
+++ b/src/logind-dbus.c
@@ -72,6 +72,8 @@
" <arg name=\"path\" type=\"o\" direction=\"out\"/>\n" \
" <arg name=\"runtime_path\" type=\"o\" direction=\"out\"/>\n" \
" <arg name=\"fd\" type=\"h\" direction=\"out\"/>\n" \
+ " <arg name=\"seat\" type=\"s\" direction=\"out\"/>\n" \
+ " <arg name=\"vtnr\" type=\"u\" direction=\"out\"/>\n" \
" </method>\n" \
" <method name=\"ActivateSession\">\n" \
" <arg name=\"id\" type=\"s\" direction=\"in\"/>\n" \
@@ -519,12 +521,15 @@ static int bus_manager_create_session(Manager *m, DBusMessage *message, DBusMess
goto fail;
}
+ seat = s ? s->id : "";
b = dbus_message_append_args(
reply,
DBUS_TYPE_STRING, &session->id,
DBUS_TYPE_OBJECT_PATH, &p,
DBUS_TYPE_STRING, &session->user->runtime_path,
DBUS_TYPE_UNIX_FD, &fifo_fd,
+ DBUS_TYPE_STRING, &seat,
+ DBUS_TYPE_UINT32, &vtnr,
DBUS_TYPE_INVALID);
free(p);