aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-09-23 23:08:05 -0500
committerCody Russell <crussell@canonical.com>2009-09-23 23:08:05 -0500
commitd9caa21356ea1b220018f37163e1ede65a37c945 (patch)
tree596998d9608cbfa198b6e06c60cc26ab56210d15
parentfec2a3548f53572ed24ee675c5f16e65dd35a299 (diff)
downloadayatana-indicator-session-d9caa21356ea1b220018f37163e1ede65a37c945.tar.gz
ayatana-indicator-session-d9caa21356ea1b220018f37163e1ede65a37c945.tar.bz2
ayatana-indicator-session-d9caa21356ea1b220018f37163e1ede65a37c945.zip
remove unnecessary stuff
-rw-r--r--src/users-service-dbus.c46
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)
{