Where to start
h at realh.co.uk
Sun Mar 27 15:55:01 PST 2005
In <1111845362.15388.32.camel at localhost.localdomain>, John (J5) Palmieri wrote:
> On Sat, 2005-03-26 at 13:25 +0000, Tony Houghton wrote:
> > Or do I have to explicitly start the service name? I can't see how to do
> > that. And if I do, is it OK just to start it in the capplet, while the
> > main instances only have to register their proxy once and can still
> > continue to receive messages OK, no matter if the service is stopped and
> > restarted?
> This is a complicated issue. For your use I would suspect that you
> would request a name for your capplet and not for your multiple instance
> app since d-bus names are unique on a bus. You would then have you app
> subscribe to signals from the capplet.
I've read the specifications for 0.22 and 0.31 (the CVS server is
currently refusing my connections), but I still can't really work out
how I'd do that. AFAICT the message SERVICE (0.22) and DESTINATION
(0.31) fields are equivalent. The spec says that messages specifying
those fields are routed to the name owner (which is not really what I
want, see below), but doesn't say what happens if the field is ommitted.
As I want one or more applications to receive messages from a capplet
which is not always running, I want some way for the name owner
(capplet) to broadcast messages to any application listening to messages
for that name. Is that possible? The newer spec doesn't mention
broadcasting eg via org.freedesktop.DBus.Broadcast, so has that feature
been removed? The "Message Routing" section just says "FIXME", so I'm
afraid I need a little help here! At least the queued ownership system
will make any lack of a broadcast system a bit easier to work around
than I feared.
TH * http://www.realh.co.uk
More information about the dbus