Bug 46762 - Activatable services change notifications
Summary: Activatable services change notifications
Status: RESOLVED MOVED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.5
Hardware: All All
: medium enhancement
Assignee: D-Bus Maintainers
QA Contact: D-Bus Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 46763
  Show dependency treegraph
 
Reported: 2012-02-29 03:52 UTC by Guillaume Desmottes
Modified: 2018-10-12 21:13 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2012-02-29 03:52:22 UTC
It would be useful for telepathy-mission-control to know when a new service (like a connection manager or a client) has been installed or removed.

<smcv> I'd personally spec it as ActivatableServiceAdded(s: Well_Known_Name), ActivatableServiceRemoved(s: Well_Known_Name)
Comment 1 Simon McVittie 2012-04-02 03:40:01 UTC
Patches welcome, I'd be happy to review this.
Comment 2 Chengwei Yang 2013-12-10 10:14:53 UTC
(In reply to comment #0)
> It would be useful for telepathy-mission-control to know when a new service
> (like a connection manager or a client) has been installed or removed.
> 
> <smcv> I'd personally spec it as ActivatableServiceAdded(s:
> Well_Known_Name), ActivatableServiceRemoved(s: Well_Known_Name)

Should be ActivatableServiceAdded(as: Array_of_Well_Known_Name), ActivatableServiceRemoved(as: Array_of_Well_Known_Name)?
Comment 3 Simon McVittie 2013-12-10 10:25:41 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > <smcv> I'd personally spec it as ActivatableServiceAdded(s:
> > Well_Known_Name), ActivatableServiceRemoved(s: Well_Known_Name)
> 
> Should be ActivatableServiceAdded(as: Array_of_Well_Known_Name),
> ActivatableServiceRemoved(as: Array_of_Well_Known_Name)?

How often do you add/remove more than one activatable service at the same time?

If dbus-daemon detects that one activatable service has been added/removed, how can it know whether there are more to come as part of the same "transaction" (e.g. installing a RPM/dpkg/... package that provides multiple .service files), or whether we've seen the whole "transaction"?

(My guessed answers are "rarely" and "it can't know that, inotify tells us about one file at a time", which is why I didn't suggest "plural" signals.)

If I'm wrong about those and you *can* make "plural" signals work well, the name should be plural too: ActivatableServicesAdded(as), ActivatableServicesRemoved(as).

One way to make them work as "plural" might be to have inotify just trigger a general reload, remember the old set of activatable services before the reload, and do a "diff" operation afterwards.
Comment 4 GitLab Migration User 2018-10-12 21:13:30 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/dbus/dbus/issues/64.


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.