From f6dbc84c93ca38b9794524b18c2685e550ab4ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Moreno?= Date: Wed, 15 May 2019 14:26:23 +0200 Subject: [PATCH] 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. --- 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 23e3b85de..b0ac3861f 100644 --- a/daemon/gdm-manager.c +++ b/daemon/gdm-manager.c @@ -1811,6 +1811,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); @@ -1843,8 +1846,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, -- GitLab