[Bug 33409] Give avatar URI on Account

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 23 14:12:17 CEST 2013


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

--- Comment #3 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
(In reply to comment #0)
> Since AM is supposed to save on disk the avatar, it is convenient for
> clients to get it as URI. For example contactsd (meego telepathy->tracker
> daemon) need to save again on disk which could be avoided if AM communicate
> where it already saved it.

What do loggers, Tracker/Zeitgeist/etc. interfaces, etc. want to save? Do they
want "the avatar of this account", or do they want "the avatar that this
account had at the time"? If they want the latter, then they'll still need to
copy it (perhaps with something clever like a a hard-link) - unless either we
make MC guarantee to keep all the old avatars, which seems pretty crap, or the
logger etc. is prepared to cope with old avatars disappearing over time (e.g.
when a cache is cleaned).

One possible refinement would be to have an "AvatarID" that is guaranteed to be
long-term unique across all accounts, and in a restricted character set, in
addition to the AvatarURI (implementation detail: the AvatarURI would be
file://${XDG_DATA_HOME}/telepathy/mission-control/${AVATAR_ID}). Or, guarantee
that the part of the URI after the last "/" is long-term-unique and in a
restricted character set. Then loggers, etc. could copy or link the avatar to
some location under their control, perhaps
${XDG_DATA_HOME}/telepathy/logger/old-avatars/${AVATAR_ID}, if they want to
hang onto them?

Possible implementation: the avatar ID is "sha1-" + SHA1(contents) + ".avatar".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list