[Bug 35896] Use XDG directories

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 7 15:08:14 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=35896

--- Comment #29 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2012-09-07 13:08:14 UTC ---
(In reply to comment #3)
> user name and password are definitely user data not configuration data

I agree, so I used the data directories.

Perhaps one day we'll split out "configuration" parameters (DisplayName,
AutomaticPresence, require-tls etc.) from "data" parameters (the existence of
the account, its login name, the server name you need to hard-code otherwise it
doesn't work on your network, the current avatar), but that can wait until
we've shaved the "make account storage make sense" yak. I think doing it right
would require a TP_CONN_MGR_PARAM_FLAG_CONFIG analogous to ..._SECRET.

(In reply to comment #21)
> 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.

This turns out to be just as complex as GVariant'ing everything, because our
internal storage model is poorly suited to splitting up into individual
keyfiles. I just kept the "one big keyfile called accounts.cfg" model.

-- 
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