Possible Duplicate:
How to start applications at startup automatically?
How can I specify the commands which I want to execute when system is started?
So far I tried to write it in .initrc, .xinitrc, .xprofile but none of them seems working.
I use Ubuntu 12.04 and LightDM.