diff options
author | Cody Russell <crussell@canonical.com> | 2009-09-23 23:08:05 -0500 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2009-09-23 23:08:05 -0500 |
commit | d9caa21356ea1b220018f37163e1ede65a37c945 (patch) | |
tree | 596998d9608cbfa198b6e06c60cc26ab56210d15 /src | |
parent | fec2a3548f53572ed24ee675c5f16e65dd35a299 (diff) | |
download | ayatana-indicator-session-d9caa21356ea1b220018f37163e1ede65a37c945.tar.gz ayatana-indicator-session-d9caa21356ea1b220018f37163e1ede65a37c945.tar.bz2 ayatana-indicator-session-d9caa21356ea1b220018f37163e1ede65a37c945.zip |
remove unnecessary stuff
Diffstat (limited to 'src')
-rw-r--r-- | src/users-service-dbus.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index 261c4c7..649bbbf 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -178,31 +178,6 @@ users_service_dbus_init (UsersServiceDbus *self) { GError *error = NULL; UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (self); - gint i = 0; - const gchar *excludes[] = - { "bin", - "root", /* excludes taken from gdm */ - "daemon", - "adm", - "lp", - "sync", - "shutdown", - "halt", - "mail", - "news", - "uucp", - "operator", - "nobody", - "nobody4", - "noaccess", - "gdm", - "postgres", - "pvm", - "rpm", - "nfsnobody", - "pcap", - NULL - }; priv->users = NULL; priv->count = 0; @@ -226,18 +201,6 @@ users_service_dbus_init (UsersServiceDbus *self) return; } - priv->exclusions = g_hash_table_new_full (g_str_hash, - g_str_equal, - g_free, - NULL); - - for (i = 0; excludes[i] != NULL; i++) - { - g_hash_table_insert (priv->exclusions, - g_strdup (excludes [i]), - GUINT_TO_POINTER (TRUE)); - } - priv->sessions = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, @@ -669,9 +632,6 @@ do_add_session (UsersServiceDbus *service, if (!xdisplay || xdisplay[0] == '\0') return FALSE; - if (g_hash_table_lookup (priv->exclusions, user->user_name)) - return FALSE; - g_hash_table_insert (priv->sessions, g_strdup (ssid), g_strdup (user->user_name)); @@ -754,12 +714,6 @@ seat_proxy_session_added (DBusGProxy *seat_proxy, return; } - if (g_hash_table_lookup (priv->exclusions, pwent->pw_name)) - { - g_debug ("Excluding user %s", pwent->pw_name); - return; - } - user = g_hash_table_lookup (priv->users, pwent->pw_name); if (!user) { |