Blame SOURCES/0001-Revert-session-forward-is-initial-from-display-to-wo.patch

f42647
From 0522f061f30baeecff958e0deee89934baff3776 Mon Sep 17 00:00:00 2001
2fc437
From: Ray Strode <rstrode@redhat.com>
2fc437
Date: Fri, 12 May 2017 10:11:09 -0400
2fc437
Subject: [PATCH] Revert "session: forward is-initial from display to worker"
2fc437
MIME-Version: 1.0
2fc437
Content-Type: text/plain; charset=UTF-8
2fc437
Content-Transfer-Encoding: 8bit
2fc437
2fc437
This reverts commit 7a4e34049c79e907d1a027390c5d3a8dcdc11977.
2fc437
2fc437
It breaks login screen until reboot on 7.3→7.4 upgrade.
2fc437
---
f42647
 daemon/gdm-session-worker.c   | 10 ++--------
2fc437
 daemon/gdm-session-worker.xml |  3 ---
f42647
 2 files changed, 2 insertions(+), 11 deletions(-)
2fc437
2fc437
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
f42647
index 34b3bf7f..10ecccb0 100644
2fc437
--- a/daemon/gdm-session-worker.c
2fc437
+++ b/daemon/gdm-session-worker.c
f42647
@@ -3033,166 +3033,160 @@ gdm_session_worker_handle_initialize (GdmDBusWorker         *object,
2fc437
 
f42647
                 if (worker->priv->username) {
f42647
                         wait_for_settings = !gdm_session_settings_load (worker->priv->user_settings,
f42647
                                                                         worker->priv->username);
f42647
                 }
2fc437
         }
2fc437
 
f42647
         if (wait_for_settings) {
f42647
                 /* Load settings from accounts daemon before continuing
f42647
                  */
f42647
                 g_signal_connect (G_OBJECT (worker->priv->user_settings),
f42647
                                   "notify::is-loaded",
f42647
                                   G_CALLBACK (on_settings_is_loaded_changed),
f42647
                                   worker);
2fc437
         } else {
f42647
                 queue_state_change (worker);
2fc437
         }
2fc437
 
2fc437
         return TRUE;
2fc437
 }
2fc437
 
2fc437
 static gboolean
2fc437
 gdm_session_worker_handle_setup (GdmDBusWorker         *object,
2fc437
                                  GDBusMethodInvocation *invocation,
2fc437
                                  const char            *service,
2fc437
                                  const char            *x11_display_name,
2fc437
                                  const char            *x11_authority_file,
2fc437
                                  const char            *console,
2fc437
                                  const char            *seat_id,
2fc437
                                  const char            *hostname,
2fc437
-                                 gboolean               display_is_local,
2fc437
-                                 gboolean               display_is_initial)
2fc437
+                                 gboolean               display_is_local)
2fc437
 {
2fc437
         GdmSessionWorker *worker = GDM_SESSION_WORKER (object);
2fc437
         validate_and_queue_state_change (worker, invocation, GDM_SESSION_WORKER_STATE_SETUP_COMPLETE);
2fc437
 
2fc437
         worker->priv->service = g_strdup (service);
2fc437
         worker->priv->x11_display_name = g_strdup (x11_display_name);
2fc437
         worker->priv->x11_authority_file = g_strdup (x11_authority_file);
2fc437
         worker->priv->display_device = g_strdup (console);
2fc437
         worker->priv->display_seat_id = g_strdup (seat_id);
2fc437
         worker->priv->hostname = g_strdup (hostname);
2fc437
         worker->priv->display_is_local = display_is_local;
2fc437
-        worker->priv->display_is_initial = display_is_initial;
2fc437
         worker->priv->username = NULL;
2fc437
 
2fc437
         g_signal_connect_swapped (worker->priv->user_settings,
2fc437
                                   "notify::language-name",
2fc437
                                   G_CALLBACK (on_saved_language_name_read),
2fc437
                                   worker);
2fc437
 
2fc437
         g_signal_connect_swapped (worker->priv->user_settings,
2fc437
                                   "notify::session-name",
2fc437
                                   G_CALLBACK (on_saved_session_name_read),
2fc437
                                   worker);
2fc437
         return TRUE;
2fc437
 }
2fc437
 
2fc437
 static gboolean
2fc437
 gdm_session_worker_handle_setup_for_user (GdmDBusWorker         *object,
2fc437
                                           GDBusMethodInvocation *invocation,
2fc437
                                           const char            *service,
2fc437
                                           const char            *username,
2fc437
                                           const char            *x11_display_name,
2fc437
                                           const char            *x11_authority_file,
2fc437
                                           const char            *console,
2fc437
                                           const char            *seat_id,
2fc437
                                           const char            *hostname,
2fc437
-                                          gboolean               display_is_local,
2fc437
-                                          gboolean               display_is_initial)
2fc437
+                                          gboolean               display_is_local)
2fc437
 {
2fc437
         GdmSessionWorker *worker = GDM_SESSION_WORKER (object);
2fc437
 
2fc437
         if (!validate_state_change (worker, invocation, GDM_SESSION_WORKER_STATE_SETUP_COMPLETE))
2fc437
                 return TRUE;
2fc437
 
2fc437
         worker->priv->service = g_strdup (service);
2fc437
         worker->priv->x11_display_name = g_strdup (x11_display_name);
2fc437
         worker->priv->x11_authority_file = g_strdup (x11_authority_file);
2fc437
         worker->priv->display_device = g_strdup (console);
2fc437
         worker->priv->display_seat_id = g_strdup (seat_id);
2fc437
         worker->priv->hostname = g_strdup (hostname);
2fc437
         worker->priv->display_is_local = display_is_local;
2fc437
-        worker->priv->display_is_initial = display_is_initial;
2fc437
         worker->priv->username = g_strdup (username);
2fc437
 
2fc437
         g_signal_connect_swapped (worker->priv->user_settings,
2fc437
                                   "notify::language-name",
2fc437
                                   G_CALLBACK (on_saved_language_name_read),
2fc437
                                   worker);
2fc437
 
2fc437
         g_signal_connect_swapped (worker->priv->user_settings,
2fc437
                                   "notify::session-name",
2fc437
                                   G_CALLBACK (on_saved_session_name_read),
2fc437
                                   worker);
2fc437
 
2fc437
         /* Load settings from accounts daemon before continuing
2fc437
          */
2fc437
         worker->priv->pending_invocation = invocation;
2fc437
         if (gdm_session_settings_load (worker->priv->user_settings, username)) {
2fc437
                 queue_state_change (worker);
2fc437
         } else {
2fc437
                 g_signal_connect (G_OBJECT (worker->priv->user_settings),
2fc437
                                   "notify::is-loaded",
2fc437
                                   G_CALLBACK (on_settings_is_loaded_changed),
2fc437
                                   worker);
2fc437
         }
2fc437
 
2fc437
         return TRUE;
2fc437
 }
2fc437
 
2fc437
 static gboolean
2fc437
 gdm_session_worker_handle_setup_for_program (GdmDBusWorker         *object,
2fc437
                                              GDBusMethodInvocation *invocation,
2fc437
                                              const char            *service,
2fc437
                                              const char            *username,
2fc437
                                              const char            *x11_display_name,
2fc437
                                              const char            *x11_authority_file,
2fc437
                                              const char            *console,
2fc437
                                              const char            *seat_id,
2fc437
                                              const char            *hostname,
2fc437
                                              gboolean               display_is_local,
2fc437
-                                             gboolean               display_is_initial,
2fc437
                                              const char            *log_file)
2fc437
 {
2fc437
         GdmSessionWorker *worker = GDM_SESSION_WORKER (object);
2fc437
         validate_and_queue_state_change (worker, invocation, GDM_SESSION_WORKER_STATE_SETUP_COMPLETE);
2fc437
 
2fc437
         worker->priv->service = g_strdup (service);
2fc437
         worker->priv->x11_display_name = g_strdup (x11_display_name);
2fc437
         worker->priv->x11_authority_file = g_strdup (x11_authority_file);
2fc437
         worker->priv->display_device = g_strdup (console);
2fc437
         worker->priv->display_seat_id = g_strdup (seat_id);
2fc437
         worker->priv->hostname = g_strdup (hostname);
2fc437
         worker->priv->display_is_local = display_is_local;
2fc437
-        worker->priv->display_is_initial = display_is_initial;
2fc437
         worker->priv->username = g_strdup (username);
2fc437
         worker->priv->log_file = g_strdup (log_file);
2fc437
         worker->priv->is_program_session = TRUE;
2fc437
 
2fc437
         return TRUE;
2fc437
 }
2fc437
 
2fc437
 static gboolean
2fc437
 gdm_session_worker_handle_start_program (GdmDBusWorker         *object,
2fc437
                                          GDBusMethodInvocation *invocation,
2fc437
                                          const char            *text)
2fc437
 {
2fc437
         GdmSessionWorker *worker = GDM_SESSION_WORKER (object);
2fc437
         GError *parse_error = NULL;
2fc437
         validate_state_change (worker, invocation, GDM_SESSION_WORKER_STATE_SESSION_STARTED);
2fc437
 
2fc437
         if (worker->priv->is_reauth_session) {
2fc437
                 g_dbus_method_invocation_return_error (invocation,
2fc437
                                                        GDM_SESSION_WORKER_ERROR,
2fc437
                                                        GDM_SESSION_WORKER_ERROR_IN_REAUTH_SESSION,
2fc437
                                                        "Cannot start a program while in a reauth session");
2fc437
                 return TRUE;
2fc437
         }
2fc437
 
2fc437
         g_debug ("GdmSessionWorker: start program: %s", text);
2fc437
 
2fc437
         g_clear_pointer (&worker->priv->arguments, (GDestroyNotify) g_strfreev);
2fc437
         if (! g_shell_parse_argv (text, NULL, &worker->priv->arguments, &parse_error)) {
2fc437
                 g_dbus_method_invocation_take_error (invocation, parse_error);
2fc437
                 return TRUE;
2fc437
diff --git a/daemon/gdm-session-worker.xml b/daemon/gdm-session-worker.xml
f42647
index 4280fe09..bc055973 100644
2fc437
--- a/daemon/gdm-session-worker.xml
2fc437
+++ b/daemon/gdm-session-worker.xml
f42647
@@ -8,83 +8,80 @@
2fc437
       <arg name="session_id" direction="out" type="s"/>
2fc437
     </method>
2fc437
     <method name="SetLanguageName">
2fc437
       <arg name="language" direction="in" type="s"/>
2fc437
     </method>
2fc437
     <method name="SetSessionName">
2fc437
       <arg name="session_name" direction="in" type="s" />
2fc437
     </method>
2fc437
     <method name="SetSessionDisplayMode">
2fc437
       <arg name="mode" direction="in" type="s"/>
2fc437
     </method>
2fc437
     <method name="SetEnvironmentVariable">
2fc437
       <arg name="name" direction="in" type="s"/>
2fc437
       <arg name="value" direction="in" type="s"/>
2fc437
     </method>
2fc437
     <method name="StartProgram">
2fc437
       <arg name="command" direction="in" type="s"/>
2fc437
       <arg name="child_pid" direction="out" type="i"/>
2fc437
     </method>
f42647
     <method name="Initialize">
f42647
       <arg name="details" direction="in" type="a{sv}"/>
f42647
     </method>
2fc437
     <method name="Setup">
2fc437
       <arg name="service_name" direction="in" type="s"/>
2fc437
       <arg name="x11_display_name" direction="in" type="s"/>
2fc437
       <arg name="x11_authority_file" direction="in" type="s"/>
2fc437
       <arg name="display_device" direction="in" type="s"/>
2fc437
       <arg name="display_seat" direction="in" type="s"/>
2fc437
       <arg name="hostname" direction="in" type="s"/>
2fc437
       <arg name="display_is_local" direction="in" type="b"/>
2fc437
-      <arg name="display_is_initial" direction="in" type="b"/>
2fc437
     </method>
2fc437
     <method name="SetupForUser">
2fc437
       <arg name="service_name" direction="in" type="s"/>
2fc437
       <arg name="user_name" direction="in" type="s"/>
2fc437
       <arg name="x11_display_name" direction="in" type="s"/>
2fc437
       <arg name="x11_authority_file" direction="in" type="s"/>
2fc437
       <arg name="display_device" direction="in" type="s"/>
2fc437
       <arg name="display_seat" direction="in" type="s"/>
2fc437
       <arg name="hostname" direction="in" type="s"/>
2fc437
       <arg name="display_is_local" direction="in" type="b"/>
2fc437
-      <arg name="display_is_initial" direction="in" type="b"/>
2fc437
     </method>
2fc437
     <method name="SetupForProgram">
2fc437
       <arg name="service_name" direction="in" type="s"/>
2fc437
       <arg name="user_name" direction="in" type="s"/>
2fc437
       <arg name="x11_display_name" direction="in" type="s"/>
2fc437
       <arg name="x11_authority_file" direction="in" type="s"/>
2fc437
       <arg name="display_device" direction="in" type="s"/>
2fc437
       <arg name="display_seat" direction="in" type="s"/>
2fc437
       <arg name="hostname" direction="in" type="s"/>
2fc437
       <arg name="display_is_local" direction="in" type="b"/>
2fc437
-      <arg name="display_is_initial" direction="in" type="b"/>
2fc437
       <arg name="log_file" direction="in" type="s"/>
2fc437
     </method>
2fc437
     <method name="StartReauthentication">
2fc437
       <arg name="pid_of_caller" direction="in" type="i"/>
2fc437
       <arg name="uid_of_caller" direction="in" type="i"/>
2fc437
       <arg name="address" direction="out" type="s"/>
2fc437
     </method>
2fc437
 
2fc437
     <signal name="SessionExited">
2fc437
       <arg name="service_name" type="s" />
2fc437
       
2fc437
            signal. Use macros in sys/wait.h to handle it. -->
2fc437
       <arg name="status" type="i" />
2fc437
     </signal>
2fc437
     <signal name="SavedLanguageNameRead">
2fc437
       <arg name="language_name" type="s"/>
2fc437
     </signal>
2fc437
     <signal name="SavedSessionNameRead">
2fc437
       <arg name="session_name" type="s"/>
2fc437
     </signal>
2fc437
     <signal name="UsernameChanged">
2fc437
       <arg name="new_username" type="s"/>
2fc437
     </signal>
2fc437
     <signal name="Reauthenticated">
2fc437
       <arg name="service_name" type="s"/>
2fc437
     </signal>
2fc437
     <signal name="CancelPendingQuery">
2fc437
     </signal>
2fc437
   </interface>
2fc437
 </node>
2fc437
-- 
f42647
2.14.2
2fc437