+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.
+
2006-10-29 Christopher Aillon <caillon@redhat.com>
* src/krb5-auth-dialog.c: Clean up the #ifdefs to
#include <stdio.h>
#include <sys/wait.h>
#include <string.h>
+#include <dbus/dbus-glib.h>
#ifdef ENABLE_NETWORK_MANAGER
{
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,
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++;
}