Bug 25484 - provide a way to tell the AM to reload connection managers
Summary: provide a way to tell the AM to reload connection managers
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-spec (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-07 04:05 UTC by Simon McVittie
Modified: 2019-12-03 20:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2009-12-07 04:05:38 UTC
A bug in MC:

1) have an MSN account, but don't have butterfly installed
2) MC starts, sees the MSN account and flags it as invalid, because the CM is missing
3) butterfly is reinstalled

At this point, MC doesn't know that the CM has been installed, so the MSN
account remains invalid.

We should either mandate that MC uses inotify() (or something) to pick up new CMs, or provide API by which package managers (e.g. dpkg postinst scripts, RPM %post snippets) can tell MC to re-list CMs.

Alberto has proposed the following API in MC:

o.f.T.AM.I.Reloadable.DRAFT
    The Reloadable interface provides a way to reload accounts.

    method Reload ()

        Request the reloading of all accounts. The AccountManager SHOULD
        attempt the reloading of all accounts and emit AccountValidityChanged
        for all those accounts whose validity has changed as a result of the
        reloading.

which is vague enough to be used for any other reload-like operations that we're interested in in future (reloading .client files, reloading the file that contains accounts, etc.).

This method isn't ideal (ideally MC could auto-detect all interesting events), but it's harmless - a minimal implementation would be to do nothing - so I don't oppose its addition. The fact that dbus-daemon is meant to inotify for new services, but seems to be unreliable at doing so, indicates that the ideal of auto-detecting new things might not be feasible.

My inclination would be that if we accept this method, we should put it on the core AccountManager interface when it's undrafted, rather than keeping a separate interface.
Comment 1 GitLab Migration User 2019-12-03 20:20:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-spec/issues/56.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.