Passing parameters to the service started by D-Bus daemon
David Zeuthen
zeuthen at gmail.com
Mon Mar 14 05:42:35 PDT 2011
Hi,
On Mon, Mar 14, 2011 at 8:34 AM, Bogdan Lotko <boguslaw.lotko at chello.at> wrote:
> Hello,
>
> Is there any possibility to pass parameter(s) to the service started by
> D-Bus daemon? A kind of extended StartServiceByName() call?
Not really any need for this since you can e.g. just add a method
com.blah.Foo.StartService (in a{sv} whatever_params);
to an object owned by the service com.blah.Foo and pass your
parameters in whatever_params. The only difference is that the program
launched needs to examine these parameters instead of the argv passed
to main().
David
More information about the dbus
mailing list