Active Topics

 


Reply
Thread Tools
Posts: 179 | Thanked: 90 times | Joined on Dec 2007
#1
Hello All,

Here's a really minor thing that can cause really major problems to developers-

Extra whitespace at the end of lines OR extra lines at the end of the 'desktop' file for your app will cause the entire desktop to crash when your app is launched from the start menu!

I just finally figured this out after struggling with dbus integration in RoadMap for 3 months. There's one or two old messages on the maemo-dev list that mention this as an aside and nothing that I could find on ITT... So I figured I'd post this.

It's definitely a bug. dbus should throw an error, not abort and take the whole UI with it. I mean, how hard is it to call chomp()?

So if after setting up your service and desktop files, the entire desktop crashes when loading your app, check for extra whitespace in your desktop file first. You'll save yourself some headaches.

Cheers,
kernelpanic

p.s.- Bug report is next. I'm posting here first cause I'm ticked off. I went through all my libosso code a dozen times trying to fix this and the problem was a <tab> at the end of a line in my desktop file?!?!

It'd be funny if it happened to someone else

[EDIT] bug # 3125 at http://bugs.maemo.org [/EDIT]

Last edited by kernelpanic; 2008-05-02 at 04:17. Reason: bug #
 

The Following 2 Users Say Thank You to kernelpanic For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:57.