View Single Post
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#7
Originally Posted by cjard View Post
I'm doing a service/daemon, and I'm using the gui aspect so that the phone shows me something i can interact with so I know its working. eventually the app will not have a gui and will probably be configured using the browser
You could make a separate small GUI app for the configuration (GConf can notify about key changes do your daemon can automagically react to changed configs).

Anyways, I would run the app in terminal in foreground while debugging, shorter way to a real daemon from there (and many of the daemons in linux/unix world have an option to start in foreground for exactly this reason).

Originally Posted by cjard View Post
i think, therefore, it may be wiser to just run a high port number in the future; it doesnt really matter - the clients of this app (smtp capable programs) can always change the port number to match the app, and it may be more sensible from an exploit point of view not to have the program running as root..
Definitely the way to go as a general precaution, of course on single user device like the N900 the privilege separation does not help as much as all the important bits for the user (user data, photos, contacts etc) are accessible/messable with the users privileges...