[maemo-developers] Software on MMC cards & OSSO question
From: Mika Yrjölä exploderi at gmail.comDate: Sun Sep 2 21:40:57 EEST 2007
- Previous message: Software on MMC cards & OSSO question
- Next message: Software on MMC cards & OSSO question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/2/07, David Hazel <david.hazel at enchaine.com> wrote: > My second question is to do with the OSSO library. I am using the call > osso_rpc_run_with_defaults to open the browser. The Doxygen > documentation says that this call is "blocking", which I take to mean > that control should not return to my application until the browser is > closed. However, I am finding that control returns immediately, and does > not block my application. Is this a bug in OSSO, or have I misunderstood > what the "blocking" refers to? Ideally, I really need my application not > to continue past the invocation of the browser until the latter is > closed by the user. Failing that, I need to be able to embed a browser > in my application. The call will block until either a reply/error has arrived to the call, or it timeouts. In this case, I'd assume that whatever method you're calling, it probably returns a reply indicating success (or failure) to your application via libosso as soon as that particular operation (say, opening an URL) has succeeded, allowing the execution of your app to continue. One way of doing what you want might be to listen for the disappearance of the browser service with D-BUS (and hope that it's gone because user closed it, instead of a crash :), but this is just a quick idea. (as a disclaimer, it's been a while since I've used the osso_rpc_* calls myself, so my knowledge might be obsolete and misleading)
- Previous message: Software on MMC cards & OSSO question
- Next message: Software on MMC cards & OSSO question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]