Question about dbus_bus_activate_service ()

Havoc Pennington hp at
Mon Nov 8 08:43:11 PST 2004

On Mon, 2004-11-08 at 15:13 +0100, Philippe Mechaï wrote:
> Hi all,
> To try d-bus, i wrote a *really* simple program (attached).
> My goal is to use a d-bus service so there's never more than one
> instance of my program running.
> If it ain't the good way to achieve this, thanks for telling me.
> I use the dbus_bus_activate_service () API call to activate a service,
> and then run another instance of my program which (obviously) make the
> same call, but the result is still DBUS_ACTIVATION_REPLY_ACTIVATED...i
> can't understand why. 
> Is there something i did wrong or didn't understand ?

I think you want acquire_service instead of activate_service


More information about the dbus mailing list