summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2007-08-29 19:47:37 +0000
committerBrian Cameron <bcameron@src.gnome.org>2007-08-29 19:47:37 +0000
commitadc6724bcf528a377a7f6cd11a60ba2e575ba0e8 (patch)
treed00fcdebfc896d6c6a14e98312c00652f8894a8f
parent56bdce696d2339fdbe15c3d359fce634714d02ba (diff)
downloadgdm-adc6724bcf528a377a7f6cd11a60ba2e575ba0e8.tar.gz
Fix bug with ConsoleKit that occurs when the session is going to migrate.
2007-08-29 Brian Cameron <brian.cameron@sun.com> * daemon/slave.c: Fix bug with ConsoleKit that occurs when the session is going to migrate. Previous code was failing to send the notification when the greeter is not TYPE_FLEXI. Fixes bug #461056. Patch by Ian Jackson <iwj@ubuntu.com> svn path=/branches/gnome-2-18/; revision=5202
-rw-r--r--ChangeLog7
-rw-r--r--daemon/slave.c12
2 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 0b534a70..6dba96e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-29 Brian Cameron <brian.cameron@sun.com>
+
+ * daemon/slave.c: Fix bug with ConsoleKit that occurs when
+ the session is going to migrate. Previous code was failing
+ to send the notification when the greeter is not TYPE_FLEXI.
+ Fixes bug #461056. Patch by Ian Jackson <iwj@ubuntu.com>
+
2007-08-27 Brian Cameron <brian.cameron@sun.com>
* daemon/verify-pam.c: When using gdm_verify_standalone_pam_conv
diff --git a/daemon/slave.c b/daemon/slave.c
index c794e3df..18d07b5d 100644
--- a/daemon/slave.c
+++ b/daemon/slave.c
@@ -1263,21 +1263,19 @@ gdm_slave_check_user_wants_to_log_in (const char *user)
/* wait for a few seconds to avoid any vt changing race
*/
gdm_sleep_no_signal (1);
+ }
#ifdef WITH_CONSOLE_KIT
- unlock_ck_session (user, migrate_to);
+ unlock_ck_session (user, migrate_to);
#endif
+ gdm_slave_send_string (GDM_SOP_MIGRATE, migrate_to);
+ g_free (migrate_to);
- gdm_slave_send_string (GDM_SOP_MIGRATE, migrate_to);
- g_free (migrate_to);
-
+ if (d->type == TYPE_FLEXI) {
/* we are no longer needed so just die.
REMANAGE == ABORT here really */
gdm_slave_quick_exit (DISPLAY_REMANAGE);
}
-
- gdm_slave_send_string (GDM_SOP_MIGRATE, migrate_to);
- g_free (migrate_to);
} else {
Display *parent_dsp;