File gdm-handle-shutdown-at-startup.patch of Package gdm.15269

diff -urp gdm-3.10.0.1.orig/daemon/gdm-simple-slave.c gdm-3.10.0.1/daemon/gdm-simple-slave.c
--- gdm-3.10.0.1.orig/daemon/gdm-simple-slave.c	2016-03-02 12:47:21.574774069 -0600
+++ gdm-3.10.0.1/daemon/gdm-simple-slave.c	2016-03-02 13:37:00.222729902 -0600
@@ -1457,6 +1457,15 @@ on_accountsservice_ready (GObject
         GError *local_error = NULL;
 
         slave->priv->accountsservice_proxy = g_dbus_proxy_new_for_bus_finish (result, &local_error);
+
+        if (local_error)
+          {
+            gchar *name = g_dbus_error_get_remote_error (local_error);
+            if (!g_strcmp0 (name, "org.freedesktop.systemd1.ShuttingDown"))
+              exit (0);
+            g_free (name);
+          }
+
         if (!slave->priv->accountsservice_proxy) {
                 g_error ("Failed to contact accountsservice: %s", local_error->message);
         } 
openSUSE Build Service is sponsored by