How to start a program at startup

Forum thread started by burndark on Wed, 2009-10-21 03:15

How do you get a program to launch at startup in Haiku?

I'm about 80% sure I was able to do this in R5 but I can't seem to remember how to do it nor find it on the Interwebz. Or has my memory gone faulty?

Thanks in advance

Comments

Re: How to start a program at startup

The easiest way to do that is create (or copy a link) to /home/config/boot/launch. I have done that with both Beam and LaunchBox and they work fine (so far) in R1/Alpha1.

Re: How to start a program at startup

Serial_Wombat is correct. The launch folder is now the preferred way to do this.

What you remember is probably editing a file called UserBootScript. It is still there, but its use is now deprecated. UserShutdownScript and UserShutdownFinishScript seem to have been quietly dropped.

Re: How to start a program at startup

Ah, good. I'm in need of some rest here but I'll check that out tomorrow. Thanks.

Re: How to start a program at startup

Yes, it was UserBootScript! Thanks for confirming that my mind isn't totally gone.

Re: How to start a program at startup

Dropped?
Sure, I noticed that any UserShutDownScript I make doesn't get run, but I assumed it just hadn't been implemented yet. I hope there will be some way to run stuff at shutdown...?

Re: How to start a program at startup

I just set this up and it worked like a charm.