[gdm/wip/initial-setup] initial-setup: call StartSessionWhenReady after BeginAutoLogin
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/initial-setup] initial-setup: call StartSessionWhenReady after BeginAutoLogin
- Date: Mon, 23 May 2011 14:20:23 +0000 (UTC)
commit 7c41e98b34c543e9236023e2ee46f44634c008f8
Author: Ray Strode <rstrode redhat com>
Date: Mon May 23 10:19:07 2011 -0400
initial-setup: call StartSessionWhenReady after BeginAutoLogin
This tells the slave it's okay to kill the initial-setup greeter.
gui/initial-setup/gdm-initial-setup.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/gui/initial-setup/gdm-initial-setup.c b/gui/initial-setup/gdm-initial-setup.c
index de572b4..a3d84c4 100644
--- a/gui/initial-setup/gdm-initial-setup.c
+++ b/gui/initial-setup/gdm-initial-setup.c
@@ -1403,6 +1403,25 @@ begin_autologin (SetupData *setup)
}
g_variant_unref (ret);
+
+ ret = g_dbus_connection_call_sync (setup->slave_connection,
+ NULL,
+ "/org/gnome/DisplayManager/GreeterServer",
+ "org.gnome.DisplayManager.GreeterServer",
+ "StartSessionWhenReady",
+ g_variant_new ("(b)", TRUE),
+ NULL, /* no reply checking */
+ G_DBUS_CALL_FLAGS_NONE,
+ G_MAXINT,
+ NULL,
+ &error);
+ if (ret == NULL) {
+ g_warning ("Calling org.gnome.DisplayManager.GreeterServer.StartSessionWhenReady failed: %s", error->message);
+ g_error_free (error);
+ return;
+ }
+
+ g_variant_unref (ret);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]