Bjørn Lie
f7e89861f4
- Add accountsservice-read-root-user-cache.patch: Read root user cache file (bsc#1114292 glfo#accountsservice/accountsservice#65). OBS-URL: https://build.opensuse.org/request/show/656739 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/accountsservice?expand=0&rev=124
25 lines
928 B
Diff
25 lines
928 B
Diff
Index: accountsservice-0.6.50/src/daemon.c
|
|
===================================================================
|
|
--- accountsservice-0.6.50.orig/src/daemon.c
|
|
+++ accountsservice-0.6.50/src/daemon.c
|
|
@@ -813,9 +813,19 @@ add_new_user_for_pwent (Daemon *d
|
|
struct spwd *spent)
|
|
{
|
|
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 (daemon->priv->users,
|