[maemo-developers] How to avoid hildon apps being launched multiple times
From: Zhu, Peter J peter.j.zhu at intel.comDate: Wed Aug 15 20:15:09 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 Eero, I figured out. If for lauching, no need to call osso_init() in application. Just adding X-Osso-Service and create a correct dbus service file with Name being com.nokia.entry_of_X-Osso-Service is enough. But, I'm not sure what you mean "callbacks if you are handling file open messages". can you explain more? Thank you very much. Peter Eero Tamminen wrote: > 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 ]