summaryrefslogtreecommitdiff
path: root/src/seat-xvnc.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-03-01 14:29:29 +1100
committerRobert Ancell <robert.ancell@canonical.com>2012-03-01 14:29:29 +1100
commita5c9f9f4c0a163dd487b5918f2742b08ab990dfb (patch)
tree7f302f236a9e0b0fcc7305b28462d93c2872bea7 /src/seat-xvnc.c
parente86b408cd06e9a8ca9d4baf1e7ad73537637f450 (diff)
downloadlightdm-git-a5c9f9f4c0a163dd487b5918f2742b08ab990dfb.tar.gz
Restructure session code so the PAM authentication is run in its own process.
Diffstat (limited to 'src/seat-xvnc.c')
-rw-r--r--src/seat-xvnc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/seat-xvnc.c b/src/seat-xvnc.c
index de3574ae..eb150c31 100644
--- a/src/seat-xvnc.c
+++ b/src/seat-xvnc.c
@@ -73,9 +73,8 @@ seat_xvnc_create_session (Seat *seat, Display *display)
session = xsession_new (XSERVER (xserver));
address = G_INET_SOCKET_ADDRESS (g_socket_get_remote_address (SEAT_XVNC (seat)->priv->connection, NULL));
hostname = g_inet_address_to_string (g_inet_socket_address_get_address (address));
- session_set_console_kit_parameter (SESSION (session), "remote-host-name", g_variant_new_string (hostname));
+ session_set_remote_host_name (SESSION (session), hostname);
g_free (hostname);
- session_set_console_kit_parameter (SESSION (session), "is-local", g_variant_new_boolean (FALSE));
return SESSION (session);
}