[maemo-developers] How to avoid hildon apps being launched multiple times
From: Eero Tamminen eero.tamminen at nokia.comDate: Wed Aug 15 18:21:34 EEST 2007
- Previous message: How to avoid hildon apps being launched multiple times
- Next message: How to avoid hildon apps being launched multiple times
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, ext Zhu, Peter J wrote: > 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() > ?? That's about enough for launching, but you of course need some callbacks if you're handling also file open messages. I'm not sure how well doing that is documented at Maemo site. Anybody? - Eero > > -Peter > > 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 >
- Previous message: How to avoid hildon apps being launched multiple times
- Next message: How to avoid hildon apps being launched multiple times
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]