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

From: Zhu, Peter J peter.j.zhu at intel.com
Date: Thu Aug 16 10:54:49 EEST 2007
You are right. Many thanks

Kalle Vahlman wrote:
> 2007/8/15, Zhu, Peter J <peter.j.zhu at intel.com>:
>> 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.
> 
> It's not. If you don't call osso_init() or otherwise request the
> service name, D-Bus will assume your application didn't manage to
> start up properly and kills the process (after some timeout, IIRC this
> was about 10s at some point).
> 
>> But, I'm not sure what you mean "callbacks if you are handling file
>> open messages". can you explain more?
> 
> If you want other apps to be able to open files into your app, you'll
> need to provide a D-Bus interface with a method to which the other app
> can give the file name as a parameter. This is used for the mime-type
> autolaunch for example.
> 
> --
> Kalle Vahlman, zuh at iki.fi
> Powered by http://movial.fi
> Interesting stuff at http://syslog.movial.fi

More information about the maemo-developers mailing list