--- policykit-gnome/src/polkit-gnome-auth-dialog.c.old 2009-02-06 17:45:56.000000000 +0000 +++ policykit-gnome/src/polkit-gnome-auth-dialog.c 2009-02-06 17:50:03.000000000 +0000 @@ -609,7 +609,10 @@ static void vendor_url_activated (SexyUrlLabel *url_label, char *url, gpointer user_data) { if (url != NULL) { - gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL); + /* don't spawn anything when running under gdm */ + if (g_getenv ("RUNNING_UNDER_GDM") == NULL) { + gtk_show_uri (NULL, url, GDK_CURRENT_TIME, NULL); + } } } @@ -620,6 +623,10 @@ action_id_activated (SexyUrlLabel *url_l DBusGConnection *bus; DBusGProxy *manager_proxy; + /* don't spawn anything when running under gdm */ + if (g_getenv ("RUNNING_UNDER_GDM") != NULL) + goto out; + error = NULL; bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error); if (bus == NULL) {