View Single Post
Posts: 72 | Thanked: 53 times | Joined on Jan 2012 @ Berlin, Germany
#18
Originally Posted by kulve View Post
The g_spawn_async_with_pipes() + g_shell_parse_argv() sounds about right.

I'm not sure what you mean with the glib event loop? It's used there normally and you probably don't need to explicitly do anything with it.
OK, that was the question, I didn't know if the plug-in already had a loop or not, I didn't took a very deep look at it .

Originally Posted by kulve View Post
You probably need to use g_child_watch_add() to track when the child is done (exited) and continue the parent's work then.
Yes, yes.

Originally Posted by kulve View Post
Also the part about reading the child's stdout and updating the progress sounds right.

It's been awhile since I touched this (or glib even) so I might be forgetting something here
Cool! I just finished my sharing script and is working great! (reporting the progress via stdout and all So my next task when I have some free time would be trying to read that from the plug-in as I described here.

I never did any devel for maemo and the arm, is there any tutorial you would recommend to get started on having a working tool chain to build and test this?

Thanks!
 

The Following User Says Thank You to llucax For This Useful Post: