"-" not allowed in dbus-interface or dbus-object path

Kaustubh Atrawalkar kaustubh.ra at gmail.com
Fri Dec 5 09:51:25 PST 2008


Thanks Thiago. I will be replacing all the dashes with underscore for
creating an interface.

On Fri, Dec 5, 2008 at 7:11 PM, Thiago Macieira <thiago at kde.org> wrote:

> On Friday 05 December 2008 14:19:16 Kaustubh Atrawalkar wrote:
> > Hi,
> >
> > I m writing a server-client architecture in which i m creating a dbus
> > interface based on the application name to be launched via server. But i
> m
> > not able to use "-" in the application executable names. Some how dbus
> > gives error while creating the dbus interface. Is this expected behavior?
> > Why does dbus doesn't allow any special symbol in interface name?
>
> Yes, that's expected. Interface names are expected to be valid C/C++/Java
> identifiers (traditional anyways, not including higher Unicode).
>
> In fact, interface names are modelled after Java class names and package
> names. The practice of replacing dashes (from DNS's LDH) with underscores
> is
> well established.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Software Engineer - Nokia, Qt Software
>  Qt Software is hiring - ask me
>      PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> 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/20081205/66236c9e/attachment.htm 


More information about the dbus mailing list