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!<br><br>Luca D.<br><br><div>
<span class="gmail_quote">2006/3/9, Kalle Vahlman <<a href="mailto:kalle.vahlman@gmail.com">kalle.vahlman@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 3/9/06, <a href="mailto:sami.ronkainen@nokia.com">sami.ronkainen@nokia.com</a> <<a href="mailto:sami.ronkainen@nokia.com">sami.ronkainen@nokia.com</a>> wrote:<br>> Hi all,<br>><br>> Continuing on the same subject...could someone point out what I'm doing
<br>> wrong? I'm trying to put the most simple helloworld application and<br>> start it from the menu. I created the .deb package, installed it - but<br>> with no joy. I can run the program from xterm but not start it from the
<br>> menu. In fact, if I try to start it there, the weirdest thing happens -<br>> I am no longer able to start *any* application from the menu.<br>><br>> Anyway, here's how I call osso_initialize:<br>><br>
> osso_context_t* osso_ctx;<br>> osso_ctx=osso_initialize(PACKAGE_NAME, PACKAGE_VERSION, FALSE,<br>> NULL);<br>><br>> ..and at the end of the program I call osso_deinitialize(osso_ctx);<br>><br>
> Then, my hello-world-spr.desktop file looks like this:<br>><br>> [Desktop Entry]<br>> Encoding=UTF-8<br>> Version=1.0.0<br>> Type=Application<br>> Name=SaminHelloWorld
<br>> Exec=/var/lib/install/usr/bin/hello-world-spr<br>> Icon=qgn_list_gene_default_app<br>> X-Osso-Service=hello-world-spr<br><br><a href="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names">
http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names</a><br><br>states that interface names cannot have a hyphen (although bus names<br>can, but since libosso functions use the same name for both...), so
<br>that's at least wrong.<br><br>> Now, I am completely puzzled so anyone spotting my mistakes from the<br>> above would deserve my eternal gratitude! :-) My maemo environment on<br>> the Linux PC is rather old (from late October 2005), could there be
<br>> anything related to that?<br><br>Shouldn't matter in this regard in my opinion.<br><br>--<br>Kalle Vahlman, <a href="mailto:zuh@iki.fi">zuh@iki.fi</a><br>Powered by <a href="http://movial.fi">http://movial.fi</a>
<br>Interesting stuff at <a href="http://syslog.movial.fi">http://syslog.movial.fi</a><br><br>_______________________________________________<br>maemo-developers mailing list<br><a href="mailto:maemo-developers@maemo.org">
maemo-developers@maemo.org</a><br><a href="https://maemo.org/mailman/listinfo/maemo-developers">https://maemo.org/mailman/listinfo/maemo-developers</a><br><br><br></blockquote></div><br>