]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - common/user-list.c
Load all users only when really needed
[sojka/lightdm.git] / common / user-list.c
index 58cb0284001525f03ebcd30a9f17ae23998d90ec..d5d95e208e32ee7f904afcdfd590f74843a76a85 100644 (file)
@@ -945,8 +945,6 @@ load_users (CommonUserList *user_list)
         g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_removed_signal);
         priv->user_removed_signal = 0;
 
-        load_passwd_file (user_list, FALSE);
-
         /* Watch for changes to user list */
 
         passwd_file = g_file_new_for_path (PASSWD_FILE);
@@ -1008,6 +1006,7 @@ common_user_list_get_user_by_name (CommonUserList *user_list, const gchar *usern
     g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), NULL);
     g_return_val_if_fail (username != NULL, NULL);
 
+    /* Load users from AccountsService, do nothing when it does not run */
     load_users (user_list);
 
     CommonUser *user = get_user_by_name (user_list, username);