After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546445 - use informative names for accounts
use informative names for accounts
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2008-08-05 17:26 UTC by Dafydd Harries
Modified: 2008-08-20 10:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dafydd Harries 2008-08-05 17:26:29 UTC
Empathy uses names like 'jabber1', 'jabber2' for accounts. It should default to using more informative names.
Comment 1 Guillaume Desmottes 2008-08-06 06:43:29 UTC
I agree.

I guess the account name could be a good heuristic. Or maybe "%s (%s)" % (account_name, protocol) if we want to limit name clashes.
Comment 2 Frederic Peters 2008-08-07 15:03:31 UTC
FWIW I would do:
 - "Jabber" (if there is only a single jabber account)
 - "jabber.org" (server name) (if there are jabber accounts on different accounts)
 - "fredp (jabber.org)" (if there are multiple accounts on the same server)
Comment 3 robert 2008-08-12 13:08:58 UTC
Going back any changing account names when you add a new account is a bit hairy. On the basis that having accounts on different protocols is more common than having multiple accounts on the same protocol, I'd go for "%s (%s)" % (protocol, account).
Comment 4 Xavier Claessens 2008-08-12 13:29:47 UTC
Frederic: While your proposition attracted me, it has a problem: I create my first jabber account so it gets named "Jabber", what happen when I create a 2nd jabber account? The first one get renamed? It seems a bit weird to me...

I'll go for Robert's suggestion for now, we can make a more dynamic system later if needed.
Comment 5 Frederic Peters 2008-08-12 13:31:32 UTC
That's the problem Robert pointed, the account should not be renamed; I am fine with (protocol, account).
Comment 6 Dafydd Harries 2008-08-12 13:35:46 UTC
I don't think dynamically renaming accounts is a problem at all. We should only include the account name for disambiguation.

A comparable situation is the Gnome menu. If you install one web browser, the menu entry will be labelled "Web Browser". If you have more than one, the menu entries will be labelled "Epiphany Web Browser", etc.
Comment 7 robert 2008-08-12 13:58:10 UTC
The problem with dynamic renaming is that the user is also allowed to override the automatically given names, and then Empathy doesn't know particularly clearly whether the display name should be replaced with its automatically-decided one. Like:
 * Create MSN account #1.
 * Rename it to "Hotmail".
 * Create another MSN account. #1 gets renamed to "MSN (foofoo@hotmail.com)".
 * User is sad.
Comment 8 Dafydd Harries 2008-08-12 14:05:56 UTC
Surely Empathy can compare the name against the one it would have given it, or keep a list of which accounts should be automatically updated.
Comment 9 Xavier Claessens 2008-08-13 13:11:01 UTC
Fixed in my new-account branch: http://monkey.collabora.co.uk/empathy.git_new-account/
Comment 10 Xavier Claessens 2008-08-20 10:23:27 UTC
That branchn were merged. Closing the bug.