]> git.0d.be Git - empathy.git/commitdiff
keyring: change display name for passwords to be more human-readable
authorJonny Lamb <jonnylamb@gnome.org>
Wed, 15 Dec 2010 09:17:15 +0000 (09:17 +0000)
committerJonny Lamb <jonnylamb@gnome.org>
Wed, 15 Dec 2010 09:17:15 +0000 (09:17 +0000)
Apparently people complained that when they opened seahorse to look at
their passwords they were greeted by nice display names for keys for
wireless networks saved by NetworkManager, and ugly keys for secret
parameters saved by mission-control. Let's fix this now then and shut
these people up.

gnome-keyring finds passwords on the parameters set in the schema, so
the display name really is only to show in seahorse. We can set
anything we want here.

Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy/empathy-keyring.c

index 2ce53d361b4e657055ff6d7e1f8993bed40e442d..4923a94630da955e29d4d061ca8a00415768a65d 100644 (file)
@@ -154,7 +154,8 @@ empathy_keyring_set_password_async (TpAccount *account,
 
   DEBUG ("Remembering password for %s", account_id);
 
-  name = g_strdup_printf ("account: %s; param: password", account_id);
+  name = g_strdup_printf ("IM account password for %s (%s)",
+      tp_account_get_display_name (account), account_id);
 
   gnome_keyring_store_password (&keyring_schema, NULL, name, password,
       store_password_cb, simple, NULL,