A Simple example of how to create a DBUS service.
sathishkumar sivagurunathan
sathish1000 at gmail.com
Wed Oct 23 16:29:17 CEST 2013
Thanks Kevin and Chengwei,
It was indeed because of wrong destination name..
Thanks,
Sathish..
On 23 October 2013 11:39, Yang Chengwei <chengwei.yang at intel.com> wrote:
> 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
>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20131023/bd32a90d/attachment.html>
More information about the dbus
mailing list