1
From c96060d42ff44359faa92da021bb5b023ac53192 Mon Sep 17 00:00:00 2001
2
From: Ray Strode <rstrode@redhat.com>
3
Date: Wed, 5 Sep 2012 18:21:35 -0400
4
Subject: [PATCH] greeter: explicitly quit when bus goes away
6
The process is supposed to get automatically terminated when
7
the session bus goes away, but that isn't seemingly working.
9
This commit forces it to quit explicitly.
11
https://bugzilla.gnome.org/show_bug.cgi?id=683068
13
gui/simple-greeter/greeter-main.c | 5 +++++
14
1 file changed, 5 insertions(+)
16
diff --git a/gui/simple-greeter/greeter-main.c b/gui/simple-greeter/greeter-main.c
17
index 85d9603..c52af96 100644
18
--- a/gui/simple-greeter/greeter-main.c
19
+++ b/gui/simple-greeter/greeter-main.c
20
@@ -129,32 +129,37 @@ static gboolean
21
session_manager_connect (void)
27
if (bus_connection == NULL) {
28
bus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
29
if (bus_connection == NULL) {
30
g_message ("Failed to connect to the session bus: %s",
36
+ g_signal_connect (G_OBJECT (bus_connection),
38
+ G_CALLBACK (gtk_main_quit),
42
sm_proxy = gsm_manager_proxy_new_sync (bus_connection,
43
G_DBUS_PROXY_FLAGS_NONE,
49
if (sm_proxy == NULL) {
50
g_message ("Failed to connect to the session manager: %s",
55
return (sm_proxy != NULL);