PDA

View Full Version : any platform independent way to make the app auto-start?



Ferdous
8th June 2009, 10:26
The application I'm now working with needs to get started when the the system starts and I intend to implement this programmatically. I've read the QSettings doc, searched google and this forum too but couldn't find any generic solution to serve the purpose.

Having read need of some help (http://www.qtcentre.org/forum/f-qt-programming-2/t-need-of-some-help-17263.html) and How to auto-start a Qt app when X starts? (http://lists.trolltech.com/qt-interest/2005-01/thread00074-0.html) , it seemed to me that there's no uniform way to do this for all Qt-supported platforms.

Please correct me if I'm wrong. If there's a uniform way to do this, please leave a hint.

e8johan
9th June 2009, 06:53
I don't think that there is such a way.

rexi
15th June 2009, 22:17
There seems to be no Qt way to do this for all of Qt's supported platforms, so you probably have to implement this for every platform you want to support. This seems to be a perfect example for why it is good that Qt let's you detect what platform an application is compiled on ;)

For the Unix-like platforms, maybe the FreeDesktop Autostart Specification (http://freedesktop.org/wiki/Specifications/autostart-spec) might save you some trouble.

Ferdous
16th June 2009, 08:04
Thanks for your responses.