Is D-Bus right for me?
braden at endoframe.com
Mon Feb 25 14:10:41 PST 2008
On Mon, 2008-02-25 at 15:05 -0500, Havoc Pennington wrote:
> On Mon, Feb 25, 2008 at 2:49 PM, Braden McDaniel <braden at endoframe.com> wrote:
> > Mapping the XEmbed control's interface to a D-Bus service seems fairly
> > straightforward to me. However, the control requires certain services
> > from the host process. I haven't figured out how this part would work
> > using D-Bus. I think my question is this: can an activated service know
> > what process activated it, and then request a service specifically from
> > that process?
> Just have the activating process invoke a method on the activated
> service, passing in the unique bus name of the activating process.
Ah, of course.
> Note that well-known bus names (the well-known names used to have the
> bus daemon launch a service) are singletons; so if you want two
> instances of your app, you'll need some other mechanism to start them
> and locate them.
Alternatively I could have all host processes share the same service;
and instead of having the service correspond to a single XEmbed control,
it could be a factory for them (where each control instance corresponds
to a D-Bus object). Stop me if this doesn't sound sane.
> Each app has a unique, non-well-known bus name as
> well, which you need to tell the host process about.
Okay. This fills in the picture for me, I think. Thanks.
Braden McDaniel e-mail: <braden at endoframe.com>
<http://endoframe.com> Jabber: <braden at jabber.org>
More information about the dbus