[gnome-shell] gdm: ignore user-removed signals for untracked users
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] gdm: ignore user-removed signals for untracked users
- Date: Mon, 27 Jun 2011 21:19:05 +0000 (UTC)
commit ff81659b9e619fd97cac40c426218ba152627457
Author: Ray Strode <rstrode redhat com>
Date: Tue May 24 22:15:10 2011 -0400
gdm: ignore user-removed signals for untracked users
If we don't know about a user, we don't care if it goes away,
and we shouldn't try to remove it from the book keeping.
https://bugzilla.gnome.org/show_bug.cgi?id=647893
src/gdmuser/gdm-user-manager.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gdmuser/gdm-user-manager.c b/src/gdmuser/gdm-user-manager.c
index e7ca833..561be32 100644
--- a/src/gdmuser/gdm-user-manager.c
+++ b/src/gdmuser/gdm-user-manager.c
@@ -887,6 +887,13 @@ on_user_removed_in_accounts_service (DBusGProxy *proxy,
user = g_hash_table_lookup (manager->priv->users_by_object_path, object_path);
+ if (user == NULL) {
+ g_debug ("GdmUserManager: ignoring untracked user %s", object_path);
+ return;
+ } else {
+ g_debug ("GdmUserManager: tracked user %s removed from accounts service", object_path);
+ }
+
manager->priv->new_users = g_slist_remove (manager->priv->new_users, user);
remove_user (manager, user);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]