Index: accountsservice-0.6.54/src/daemon.c
===================================================================
--- accountsservice-0.6.54.orig/src/daemon.c
+++ accountsservice-0.6.54/src/daemon.c
@@ -829,9 +829,19 @@ add_new_user_for_pwent (Daemon *d
{
DaemonPrivate *priv = daemon_get_instance_private (daemon);
User *user;
+ g_autofree gchar *filename = NULL;
+ g_autoptr(GKeyFile) key_file = NULL;
+ const gchar *user_name;
user = user_new (daemon, pwent->pw_uid);
user_update_from_pwent (user, pwent, spent);
+
+ user_name = user_get_user_name (user);
+ filename = g_build_filename (USERDIR, user_name, NULL);
+ key_file = g_key_file_new ();
+ if (g_key_file_load_from_file (key_file, filename, 0, NULL))
+ user_update_from_keyfile (user, key_file);
user_register (user);
g_hash_table_insert (priv->users,