[gdm] manager: Chown initial-setup homedir on REUSE_VT



commit d357ed340fa1cb99d090a109a939bf577764706a
Author: Daniel GarcĂ­a Moreno <daniel endlessm com>
Date:   Wed May 15 14:26:23 2019 +0200

    manager: Chown initial-setup homedir on REUSE_VT
    
    The initial setup home dir should be owned by the initial user created
    during the gnome-initial-setup to be able to copy all config to the new
    user with the gnome-initial-setup-copy-worker.
    
    The owner of this homedir is been changed if the session is different
    from GDM_SESSION_DISPLAY_MODE_REUSE_VT but in this case the manager is
    not calling this function.
    
    This patch moves the call to this function outside the if-else to fix
    the gnome-initial-setup process in the first case.
    
    https://gitlab.gnome.org/GNOME/gdm/merge_requests/70

 daemon/gdm-manager.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index c9150bfd..9fad80ba 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1812,6 +1812,9 @@ on_start_user_session (StartUserSessionOperation *operation)
 #endif
                       NULL);
 
+        if (doing_initial_setup)
+                chown_initial_setup_home_dir ();
+
         session_id = gdm_session_get_conversation_session_id (operation->session,
                                                               operation->service_name);
 
@@ -1844,8 +1847,6 @@ on_start_user_session (StartUserSessionOperation *operation)
                                 gdm_display_finish (display);
                         }
 
-                        chown_initial_setup_home_dir ();
-
                         if (!g_file_set_contents (ALREADY_RAN_INITIAL_SETUP_ON_THIS_BOOT,
                                                   "1",
                                                   1,


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