[maemo-developers] D-BUS service name confusion

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Fri May 30 10:59:13 EEST 2008
On Thu, 2008-05-29 at 09:12 +0200, ext Aniello Del Sorbo wrote:
> I think the docs are not wrong, just misleading.

Ok, I'm waiting for your patch :)

BR; Kimmo

> If you only specify the application name in the osso_initialize() function,
> then you've got to use the "com.nokia.application_name" name in the
> D-BUS service file.
> If you prefer not to use the "com.nokia" prefix, then specify the FQDN
> (in DNS name convention)
> in either the D-BUS service file AND as parameter to osso_initialize
> () function.
> 
> In fact I do use "com.nokia.xournal" in the D-BUS service file and
> only "xournal" in the initialize function.
> And it works.
> The former version of my port used "org.anidel.xournal" and that was
> the name I've used in either the
> D-BUS service file AND the osso_initialize () function.
> 
> And I am going to switch back to "org.anidel.xournal" :)
> 
> --
> Anidel
> 
> On Thu, May 29, 2008 at 8:48 AM, Kimmo Hämäläinen
> <kimmo.hamalainen at nokia.com> wrote:
> > On Wed, 2008-05-28 at 19:41 +0200, ext Axel Sommerfeldt wrote:
> > ...
> >> - The documentation of osso_initialize() is wrong/misleading.
> > ...
> >
> > libosso.h says:
> > * @param application The name of the application.
> >  * This name forms the last part of the default (D-BUS) service name of the
> >  * application. Note that the D-BUS service name will be
> >  * 'com.nokia.application', where 'application' is the value you gave as the
> >  * parameter. Note also that this argument must be identical to the
> >  * X-Osso-Service value in the desktop file, or the D-BUS daemon will kill
> >  * your application. If you do not want to use the default 'com.nokia' prefix,
> >  * you must pass the whole D-Bus service name, e.g. 'org.maemo.my_app'.
> >  * The only valid characters that the name may contain are letters a-z and
> >  * the underscore '_'.
> >
> > Is it wrong?
> >
> > BR; Kimmo
> >
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers at maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> 
> 
> 

More information about the maemo-developers mailing list