I am running Xubuntu and have several programs automatically starting when the computer powers up. All the programs starting at once is causing me issues with having the programs talk to each other. Instead, I would like to stage the starting of each program with program A starting first, then five seconds later program B starts and so on. How do I do this?

  • So far, I have tried 'X-GNOME-Autostart-Delay' but it is not recognized by Xubuntu. – Jordan Walters May 3 '16 at 22:15

I would implement it like this (probably not an Xubuntu friendly way, but should work): create a startup script which will start all required program, and make that script the only "auto-started" program with Xubuntu tools. Script can look like this:

program1 &
sleep 5
program2 &
sleep 5
program3 &

Or like this, which will look better if you have multiple programs to launch:

  "program1 args"
  # ...

for prog in "${PROGS[@]}"; do
  ${prog} &  # no quotes here, because we want to support args
  sleep 5
  • Better quit using DMs and use xinit/startx intead, – McSinyx May 4 '16 at 3:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.