[maemo-developers] How to avoid hildon apps being launched multiple times

From: Zhu, Peter J peter.j.zhu at intel.com
Date: Wed Aug 15 18:01:35 EEST 2007

You mean all what applications need to do is 
    define a dbus servie file
    Add a X-Osso-Service field to index that dbus file in Desktop file
    Call osso_init() at initializaion()


Eero Tamminen wrote:
> Hi,
> ext Zhu, Peter J wrote:
>> Is there existing general framework or method in maemo/hildon so that
>> application won't be launched more than once even if it's clicked
>> multiple times from menu? Here I want a general and elegant way
>> rather than for example judge if it's in ps list.
> Yes, applications are sent D-BUS messages (e.g. to ask them to open
> a file) with an auto-activation flag set.  This way neither app
> needs to care whether the other is running or not.  Libosso has
> wrappers for this.
> 	- Eero

More information about the maemo-developers mailing list