"Luca Donaggio" <[EMAIL PROTECTED]> writes:

> Have you checked that the constant PACKAGE_VERSION has exactly the same value 
> (1.0.0) as in the
> line "Version=" in your .desktop file? If they're not the same 
> osso_initialize() will fail!

oooooooh nooooooo!!!1!11!! That must have been my problem. In my tries so
far the "PACKAGE_VERSION" has been totally different that was expected.. I
thought  this was used to inform TN what is the program version, not the 
".desktop" file content version. I.e. with revsh I called like
osso_initialize("revsh", "1.92", 0, 0)

And this surely is like this.. My confusion must have been coming from
here; quoting http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html:

---------- 8< --------------

[Desktop Entry] 
Encoding=UTF-8 
Version=1.0 
Type=Application 
Name=maemo Example
Exec=/usr/bin/example_libosso
X-Osso-Service=org.maemo.example_libosso
Icon=qgn_list_gene_default_app

---------- >8 --------------

/* Initialize maemo application */
osso_context = osso_initialize(
    "example_libosso", "0.0.1", TRUE, NULL);
       
/* Check that initialization was ok */
if (osso_context == NULL)
{
    return OSSO_ERROR;
}

---------- 8< --------------

... it also says:  Second parameter is application version as a string. 


Someone better state soon what is the right interpretation. And fix
tutorial is there is anything wrong...

> Luca D.

Tomi
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to