A Simple example of how to create a DBUS service.

Yang Chengwei chengwei.yang at intel.com
Tue Oct 22 23:09:34 PDT 2013


On Tue, Oct 22, 2013 at 07:23:36PM +0200, Kevin Krammer wrote:
> On Tuesday, 2013-10-22, 21:41:49, sathishkumar sivagurunathan wrote:
> 
> > The service files is listed below.. The file is named as
> > org.pulseaudio.genivi.RoutingSender.service.
> > 
> > # DBus service activation config
> > [D-BUS Service]
> > Name=org.pulseaudio.genivi.RoutingSender
> > Exec=/usr/bin/genivi/ComMain.out
> > 
> > Then using the dbus send command, I invoke the dbus
> > 
> > dbus-send --dest='org.pulseaudio.genivi'        \
> >             /org/pulseaudio/genivi/RoutingSender              \
> >             org.pulseaudio.genivi.RoutingSender   \
> >             int32:47
> > 
> > But I am not able to receive the desired result..
> 
> Probably just an error in the mail but check that your actual command has the 
> correct value for --dest
> The one here in is missing the last part

Yes, your Name in the .service file is
org.pulseaudio.genivi.RoutingSender while the value of "--dest=" is
org.pulseaudio.genivi.

BTW, use dbus-send with '--print-reply' is a good idea.

--
Thanks,
Chengwei

> 
> Cheers,
> Kevin 
> -- 
> Kevin Krammer, KDE developer, xdg-utils developer
> KDE user support, developer mentoring



> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20131023/7aeaafc5/attachment.pgp>


More information about the dbus mailing list