[gdm] greeter: explicitly quit when bus goes away



commit 19740de8f70e8fe63cee462c74c9509f7f26e760
Author: Ray Strode <rstrode redhat com>
Date:   Wed Sep 5 18:21:35 2012 -0400

    greeter: explicitly quit when bus goes away
    
    The process is supposed to get automatically terminated when
    the session bus goes away, but that isn't seemingly working.
    
    This commit forces it to quit explicitly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683068

 gui/simple-greeter/greeter-main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/greeter-main.c b/gui/simple-greeter/greeter-main.c
index 85d9603..c52af96 100644
--- a/gui/simple-greeter/greeter-main.c
+++ b/gui/simple-greeter/greeter-main.c
@@ -140,6 +140,11 @@ session_manager_connect (void)
                         g_error_free (error);
                         exit (1);
                 }
+
+                g_signal_connect (G_OBJECT (bus_connection),
+                                  "closed",
+                                  G_CALLBACK (gtk_main_quit),
+                                  NULL);
         }
 
         sm_proxy = gsm_manager_proxy_new_sync (bus_connection,



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