View Single Post
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#47
Originally Posted by qwerty12 View Post
*Cries* - Vala converts to C before building
LOL Sorry dude, never even heard of Vala before Its syntax was familiar enough that it was trivial to convert it. Your Vala code was very helpful.

Originally Posted by qwerty12 View Post
In your service file, you call the service "org.maemo.javalauncher", which is fine but you've still left it as "javalauncher" in the desktop file. When a name is not given a prefix, it automatically assumes "com.nokia.javalauncher". So you've got a desktop file looking for com.nokia.javalauncher but a service file only defining org.maemo.javalauncher.
This is also true for osso_initialize(), so the call to that must also be amended.
Thanks for confirming this. I was wondering about it myself, but there was so much conflicting text in various docs (I saw both "com.nokia" and "org.maemo" out there) that I mentally flipped a coin to decide.

Originally Posted by qwerty12 View Post
I verified your program actually starts by doing a - wait for it - "while true; do ps | grep java | grep -v grep; done" from the terminal.
OK smartypants, ya got me....I shoulda known to try that....sometimes my brain don't werk 2 gud neither

Originally Posted by qwerty12 View Post
However,
PHP Code:
dbus_connection_flush((DBusConnection*)osso_get_dbus_connection(ctx));
dbus_connection_read_write((DBusConnection*)osso_get_dbus_connection(ctx), 0); 
didn't work for me; mime_cb was never called. Maybe I'm doing it on the wrong DBusConnection, but I dunno.
I'm not surprised. I was desperately trying to find some way to force/ensure DBus messages got flushed to the mime_cb callback in that tight loop.

Originally Posted by qwerty12 View Post
So I went back to what works for me: A GMainLoop. libosso will automatically call dbus_connection_setup_with_g_main () on both its connections for you, and mime_cb was actually getting called this time. And, according to ltrace, it's sure not waking up as much
That makes good sense to me.

Originally Posted by qwerty12 View Post
When doing this, it all worked
[code snip]
Awesome. I'll get all this info neatly filed away in my head, built into a .deb, and the whole shebang put up on garage.maemo.org as soon as possible


HUGE thanks for giving me an express-route education in these technicalities, qwerty12 The documentation out there is far from textbook quality - I've had to dig through headers so much!
 

The Following 2 Users Say Thank You to Dak For This Useful Post: