<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hi Saurabh,<br>If that is the case, can you postpone the initialization ? <br>I remember ensuring such kind of functions are called at idle time [g_idle_add() ] .<br><br>Similar way, you can set a timeout of '0' secs using QTimer. In the respective callback, you can do your initialization .<br><br>Regards,<br>Chitti<br><br>--- On <b>Fri, 5/14/10, saurabh aggarwal <i><aggarwal.saurabh@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: saurabh aggarwal <aggarwal.saurabh@gmail.com><br>Subject: Re: Problem running installed app (using icon)<br>To: "Chitti Babu" <chitti_maemo@yahoo.com><br>Cc: maemo-developers@maemo.org<br>Date: Friday, May 14, 2010, 5:34 PM<br><br><div id="yiv510119351">I did have the X-Osso-Type, but didn't have the Terminal=false
line. Don't think it will help.<br><br>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. <br>
<br>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.<br>
<br>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?<br><br>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?<br>
<br>Regards,<br>-Saurabh<br><br><div class="gmail_quote">On Fri, May 14, 2010 at 6:40 PM, Chitti Babu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:chitti_maemo@yahoo.com" target="_blank" href="/mc/compose?to=chitti_maemo@yahoo.com">chitti_maemo@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">Hi Saurabh,<br><br>Do you have these 2 lines in your desktop file ?<br><br>X-Osso-Type=application/x-executable<br>Terminal=false<br>
<br>Regards,<br>Chitti<br><br></td></tr></tbody></table></blockquote></div><br>
</div></blockquote></td></tr></table><br>