where to put an application if i want to start it on start up

hi
i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots

i mean whenever my system starts that application must also start

thanks

On most linuxes, you can append the command to /etc/rc.local

so suppose i want to start a song in XINE(or anyother tool)when it starts

or i want to start my VI editor

what can i do in that rc file tell me by example please

and thanks for reply

I assume you mean when the window manager starts. In kde put your script in the following directory:

/home/user/.kde/Autostart