gdm r5634 - in trunk: . daemon



Author: mccann
Date: Fri Jan 25 15:31:10 2008
New Revision: 5634
URL: http://svn.gnome.org/viewvc/gdm?rev=5634&view=rev

Log:
2008-01-25  William Jon McCann  <mccann jhu edu>

	* daemon/gdm-greeter-session.c: (open_greeter_session):
	Set the ConsoleKit session-type to LoginWindow for the
	greeter sessions.




Modified:
   trunk/ChangeLog
   trunk/daemon/gdm-greeter-session.c

Modified: trunk/daemon/gdm-greeter-session.c
==============================================================================
--- trunk/daemon/gdm-greeter-session.c	(original)
+++ trunk/daemon/gdm-greeter-session.c	Fri Jan 25 15:31:10 2008
@@ -125,7 +125,7 @@
 open_greeter_session (GdmGreeterSession *greeter_session)
 {
         struct passwd *pwent;
-        const char    *session;
+        const char    *session_type;
         const char    *hostname;
         const char    *x11_display_device;
         int            res;
@@ -134,8 +134,7 @@
 
         ret = FALSE;
 
-        /* FIXME: */
-        session = "greeter";
+        session_type = "LoginWindow";
 
         pwent = getpwnam (greeter_session->priv->user_name);
         if (pwent == NULL) {
@@ -173,6 +172,7 @@
         res = ck_connector_open_session_with_parameters (greeter_session->priv->ckc,
                                                          &error,
                                                          "unix-user", &pwent->pw_uid,
+                                                         "session-type", &session_type,
                                                          "x11-display", &greeter_session->priv->x11_display_name,
                                                          "x11-display-device", &x11_display_device,
                                                          "remote-host-name", &hostname,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]