krb5-auth-dialog r70 - in trunk: . src



Author: walters
Date: Sat Mar 22 04:26:58 2008
New Revision: 70
URL: http://svn.gnome.org/viewvc/krb5-auth-dialog?rev=70&view=rev

Log:
+2008-03-22  Colin Walters  <walters verbum org>
+
+	* MAINTAINERS: New file.
+	* src/krb5-auth-dialog.c: Connect to session bus
+	to be sure we exit when the session dies.
+


Modified:
   trunk/ChangeLog
   trunk/src/krb5-auth-dialog.c

Modified: trunk/src/krb5-auth-dialog.c
==============================================================================
--- trunk/src/krb5-auth-dialog.c	(original)
+++ trunk/src/krb5-auth-dialog.c	Sat Mar 22 04:26:58 2008
@@ -29,6 +29,7 @@
 #include <stdio.h>
 #include <sys/wait.h>
 #include <string.h>
+#include <dbus/dbus-glib.h>
 
 
 #ifdef ENABLE_NETWORK_MANAGER
@@ -570,6 +571,8 @@
 {
 	GtkWidget *dialog;
 	GnomeClient *client;
+	DBusGConnection *session;
+	GError *error = NULL;
 	int run_auto = 0, run_always = 0;
 	struct poptOption options[] = {
 		{"auto", 'a', 0, &run_auto, 0,
@@ -591,6 +594,9 @@
 	client = gnome_master_client ();
 	gnome_client_set_restart_style (client, GNOME_RESTART_ANYWAY);
 
+	/* Connect to the session bus so we get exit-on-disconnect semantics. */
+	session = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
+
 	if (run_always && !run_auto) {
 		always_run++;
 	}



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