[Bug 35896] Use XDG directories
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Aug 30 12:31:21 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=35896
--- Comment #21 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2012-08-30 10:31:21 UTC ---
(In reply to comment #5)
> While we're migrating anyway, this would be a good time to consider a better
> accounts-file format: would one GKeyFile per account be better?
I think we should do this: it's not difficult.
(In reply to comment #8)
> We should store one account per file in a GVariant-based format, probably.
This, on the other hand, is a massive unshaven yak. Migrating from a format
with less information to a format with more information turns out to be quite
difficult... so I'm tempted to just migrate
~/.mission-control/accounts/accounts.cfg to
$XDG_DATA_DIRS/.local/share/telepathy/accounts/${ACCOUNT_NAME}.ini (one keyfile
per account) and do the GVariantization later.
The account-storage plugin API is also a mess, and fixing that involves
GAsync'ing everything, which, again, would be great to do, but is a pretty big
yak to shave.
(In reply to comment #16)
> > + priv->account_connections_dir = g_build_filename (g_get_user_cache_dir (),
> > + "mission-control", "accounts", NULL);
>
> I'd prefer this to end up in g_get_user_cache_dir()/telepathy/mc_connections
> (i.e. not a dotfile, and share a directory with tp-glib and the logger).
If you don't use --with-accounts-cache-dir or $MC_ACCOUNT_DIR, which you
generally shouldn't, then this file is already
${XDG_CACHE_HOME}/.mc_connections. So, no migration needed. Yay.
(In reply to comment #17)
> the avatar, which is kept in (for instance)
> ~/.mission-control/accounts/gabble/jabber/smcv_40example_2ecom0/avatar.bin.
We can move these, sure.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the telepathy-bugs
mailing list