Esempio n. 1
0
JS_EXPORT_API
gchar *lock_get_user_realname (const gchar* name)
{
    // WHY NOT use name here???
    NOUSED(name);
    return get_user_realname (username);
}
Esempio n. 2
0
gboolean lock_is_guest ()
{
    gboolean is_guest = FALSE;

    if (username == NULL) {
        username = lock_get_username ();
    }

    if (g_str_has_prefix (username, "guest")) {
        gchar * name = get_user_realname (username);

        if (g_ascii_strncasecmp ("Guest", name, 5) == 0) {
            g_warning ("lock is guest:can't lock for guest\n");
            is_guest = TRUE;
        }
        g_free (name);
    }

    return is_guest;
}
Esempio n. 3
0
JS_EXPORT_API
gchar* greeter_get_user_realname (const gchar* name)
{
    return get_user_realname (name);
}