diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-09-16 12:10:21 +1000 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-09-16 12:10:21 +1000 |
commit | 9c0a1b73b6e99a24af52e7d716f22be2da8134c6 (patch) | |
tree | 60f3405fbcb09201d0727c3637c26e85c0287830 /src/xsession.c | |
parent | 1e21160c3bdbdd973dd58490e28cb178afd0eee4 (diff) | |
download | lightdm-9c0a1b73b6e99a24af52e7d716f22be2da8134c6.tar.gz |
Refactor X code out of display.c and seat.c. Drop obsolete GetSeatForCookie and GetSessionForCookie D-Bus calls
Diffstat (limited to 'src/xsession.c')
-rw-r--r-- | src/xsession.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xsession.c b/src/xsession.c index ebbe2621..3b0201d7 100644 --- a/src/xsession.c +++ b/src/xsession.c @@ -57,10 +57,19 @@ xsession_start (Session *session) { XSession *xsession = XSESSION (session); PAMSession *authentication; + gchar *hostname; authentication = session_get_authentication (session); pam_session_set_item (authentication, PAM_TTY, xserver_get_address (xsession->priv->xserver)); + session_set_console_kit_parameter (session, "x11-display", g_variant_new_string (xserver_get_address (xsession->priv->xserver))); + hostname = xserver_get_hostname (xsession->priv->xserver); + if (hostname) + { + session_set_console_kit_parameter (session, "remote-host-name", g_variant_new_string (hostname)); + session_set_console_kit_parameter (session, "is-local", g_variant_new_boolean (FALSE)); + } + if (xserver_get_authority (xsession->priv->xserver)) { gchar *path; |