Hi Saurabh, If that is the case, can you postpone the initialization ? I remember ensuring such kind of functions are called at idle time [g_idle_add() ] .
Similar way, you can set a timeout of '0' secs using QTimer. In the respective callback, you can do your initialization . Regards, Chitti --- On Fri, 5/14/10, saurabh aggarwal <aggarwal.saur...@gmail.com> wrote: From: saurabh aggarwal <aggarwal.saur...@gmail.com> Subject: Re: Problem running installed app (using icon) To: "Chitti Babu" <chitti_ma...@yahoo.com> Cc: maemo-developers@maemo.org Date: Friday, May 14, 2010, 5:34 PM I did have the X-Osso-Type, but didn't have the Terminal=false line. Don't think it will help. I have since then added all the service files, and the required code (as given in a QT sample app). I still wasn't able to launch my application. So, I went and removed all my application initialization code (where I was adding widgets to the main window, loading preferences from file etc.), and then I saw that my application would run fine. As soon as I re-add the initialization code, my app stops working. Is there some sort of a time-limit imposed in which the app has to call app.exec() or something like that? I also do have a few printfs in my code - can they cause any problems? Daniil mentioned that there was a case when an app might be killed within 2 seconds of launch - what exactly triggers that? Could it be that I am taking too long in initialization, and that is causing something (maybe a dbus message) to timeout and kill the app? Regards, -Saurabh On Fri, May 14, 2010 at 6:40 PM, Chitti Babu <chitti_ma...@yahoo.com> wrote: Hi Saurabh, Do you have these 2 lines in your desktop file ? X-Osso-Type=application/x-executable Terminal=false Regards, Chitti
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers