[maemo-developers] Check if application is run
From: Mika Yrjölä exploderi at gmail.comDate: Sat Nov 10 21:59:06 EET 2007
- Previous message: Check if application is run
- Next message: Data corruption on N770 in OS2007 HE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 11/9/07, Michael Stepanov <michael at stepanoff.org> wrote: > Well if I understand clearly I have to define dbus services for SDL > application and for its maemo wrapper (it's already done for the wrapper). > And then listen in the wrapper events sent from the SDL application. Catch > 'crash' event or similar and run it again. Right? (sorry about some delay in answering) That's pretty close to it. Are you using / going to use the libdbus, or some bindings such as the GLib or Python ones? Generally, the bindings make things easier; for example with the GLib bindings you could just create a DBusGProxy on the wrapper (see dbus_g_proxy_new_for_name_owner () / dbus_g_proxy_new_for_name () for more information) to represent the SDL application (well, an interface provided by it) and get a nice "destroy" signal when the name owner (i.e. the SDL app) disappears. Other bindings almost certainly have equally convenient ways of doing this, but I'm not familiar with them. With bare libdbus you will have to do more manual work and probably read the corresponding part of the spec (such as NameOwnerChanged signal and related items) with more thought, but it's still quite doable with it as well.
- Previous message: Check if application is run
- Next message: Data corruption on N770 in OS2007 HE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]