[maemo-developers] Problem running installed app (using icon)
From: Chitti Babu chitti_maemo at yahoo.comDate: Sun May 16 20:27:41 EEST 2010
- Previous message: IO schedules other than noop?
- Next message: Stats at Maemo repository
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.saurabh at gmail.com> wrote: From: saurabh aggarwal <aggarwal.saurabh at gmail.com> Subject: Re: Problem running installed app (using icon) To: "Chitti Babu" <chitti_maemo at yahoo.com> Cc: maemo-developers at 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_maemo at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100516/38d0b38c/attachment.htm>
- Previous message: IO schedules other than noop?
- Next message: Stats at Maemo repository
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]