How can I delay a specific program on startup?Delay Cairo-DockIs there a command to start a program after a delay?How can I delay dropbox from starting, but not disable it?How to start Thunderbird minimized on start-up?How do I limit Dropbox's activity on the hard disk?how can i write a shell script that will run at startup and introduce a delay in the start of an applicationHow do I delay a startup application in Lubuntu?Execute a command 20 seconds after the desktop is bootedSleep command not working with start up applicationsHow do I delay launching Splashtop at startup by ten seconds?How can I have different startup programs for “Desktop Edition” and “Classic Edition” sessions in 11.04?How to make Cairo dock(with opengl) excute only on Gnome-Classic?Cairo dock shows a vertical line instead of showing a dock!Cairo dock and unitycairo-dock (fallback) won't run at start-up (ubuntu 16.04)Cairo-Dock recognizes App when starting after App, but not other way roundCairo Dock in Lubuntu 18.04.1

What is the business model of discounted gift cards?

Copying files: Does Windows write to disk if files are identical

How long would it take to build 30 miles of Roman road?

Natural Metre Bar

Is This Constraint Convex?

Algorithm that converts array-like data into MathJax: Python

How can a signal be both periodic and random?

should I include offer letter from a different institution in my application for a faculty position

Is there a name for the phenomenon of false positives counterintuitively outstripping true positives

How to engage Decker in the actual run?

How can I increase the rate of regeneration in humans without the possibility of tumors developing?

Why is Robin Hood French in Shrek?

How to write 2**n - 1 as a recursive function?

Had J. K. Rowling seen This Is Spinal Tap before writing Harry Potter and the Philosopher's Stone?

In this context which is better: astuta or intelligente?

Is the EU Settlement Scheme legal?

Why is Microwaved mac & cheese burnt where they touch?

Why are one-word titles so dominant in books, film, and games?

Why does the viscosity of honey decrease when mixed with other viscous fluids?

Are commoners actually this squishy?

Confusion in PID loop?

SpaceX Starship landing on Moon or Mars: why doesn't it fall over?

Are these 2 resistors in parallel?

Find the closest enemy



How can I delay a specific program on startup?


Delay Cairo-DockIs there a command to start a program after a delay?How can I delay dropbox from starting, but not disable it?How to start Thunderbird minimized on start-up?How do I limit Dropbox's activity on the hard disk?how can i write a shell script that will run at startup and introduce a delay in the start of an applicationHow do I delay a startup application in Lubuntu?Execute a command 20 seconds after the desktop is bootedSleep command not working with start up applicationsHow do I delay launching Splashtop at startup by ten seconds?How can I have different startup programs for “Desktop Edition” and “Classic Edition” sessions in 11.04?How to make Cairo dock(with opengl) excute only on Gnome-Classic?Cairo dock shows a vertical line instead of showing a dock!Cairo dock and unitycairo-dock (fallback) won't run at start-up (ubuntu 16.04)Cairo-Dock recognizes App when starting after App, but not other way roundCairo Dock in Lubuntu 18.04.1






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









42

















How to delay a program such as cairo-dock (No openGL) or Firefox?



Sometimes programs crash when started with other startup apps. I want programs to start 10 seconds late to avoid a crash.










share|improve this question




























  • see askubuntu.com/questions/22512/…

    – belacqua
    Mar 2 '11 at 7:54

















42

















How to delay a program such as cairo-dock (No openGL) or Firefox?



Sometimes programs crash when started with other startup apps. I want programs to start 10 seconds late to avoid a crash.










share|improve this question




























  • see askubuntu.com/questions/22512/…

    – belacqua
    Mar 2 '11 at 7:54













42












42








42


15






How to delay a program such as cairo-dock (No openGL) or Firefox?



Sometimes programs crash when started with other startup apps. I want programs to start 10 seconds late to avoid a crash.










share|improve this question

















How to delay a program such as cairo-dock (No openGL) or Firefox?



Sometimes programs crash when started with other startup apps. I want programs to start 10 seconds late to avoid a crash.







configuration startup cairo-dock






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Feb 14 '15 at 18:11









MERose

2086 silver badges19 bronze badges




2086 silver badges19 bronze badges










asked Mar 2 '11 at 7:47







user11701user11701






















  • see askubuntu.com/questions/22512/…

    – belacqua
    Mar 2 '11 at 7:54

















  • see askubuntu.com/questions/22512/…

    – belacqua
    Mar 2 '11 at 7:54
















see askubuntu.com/questions/22512/…

– belacqua
Mar 2 '11 at 7:54





see askubuntu.com/questions/22512/…

– belacqua
Mar 2 '11 at 7:54










4 Answers
4






active

oldest

votes


















48


















Delaying autostart with inbuilt delay option




Note: Only works with desktop sessions that recognize the X-GNOME-Autostart-Delayparameter (e.g. Unity, Unity2D, GNOME). This will not work for LXDE, XFCE, KDE, etc.




With this solution there's no need for a script or sleep. Head to your autostart folder:



nautilus ~/.config/autostart


Find the .desktop file that corresponds with your application and open it in a text editor, e.g. gedit:



gedit ~/.config/autostart/application.desktop


Append the following line to the file:



X-GNOME-Autostart-Delay=foo


where foo is the time in seconds you want to delay the application launch by, e.g.:



X-GNOME-Autostart-Delay=60


Save the file, relog and you should see the effects.






share|improve this answer




























  • This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

    – bmbaker
    Oct 7 '12 at 18:01






  • 2





    Works in Ubuntu 18.04.

    – Ives
    Jul 3 '18 at 13:50


















19


















Try this: bash -c "sleep 10 && firefox"






share|improve this answer





















  • 1





    10x a lot, why does just sleep 10 && firefox not work?

    – user3804598
    Jan 2 '18 at 20:43


















6


















You could try to change the command to this:



sleep 10 && firefox


Some people say it works, some say it doesn't, if this is your case, and it does not work, you can try with:



xterm -e 'sleep 10 && firefox'





share|improve this answer

































    5


















    I had to use this to get it to work for skype: sh -c "sleep 10 && skype &" in Ubuntu 12.04






    share|improve this answer





























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f28685%2fhow-can-i-delay-a-specific-program-on-startup%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      48


















      Delaying autostart with inbuilt delay option




      Note: Only works with desktop sessions that recognize the X-GNOME-Autostart-Delayparameter (e.g. Unity, Unity2D, GNOME). This will not work for LXDE, XFCE, KDE, etc.




      With this solution there's no need for a script or sleep. Head to your autostart folder:



      nautilus ~/.config/autostart


      Find the .desktop file that corresponds with your application and open it in a text editor, e.g. gedit:



      gedit ~/.config/autostart/application.desktop


      Append the following line to the file:



      X-GNOME-Autostart-Delay=foo


      where foo is the time in seconds you want to delay the application launch by, e.g.:



      X-GNOME-Autostart-Delay=60


      Save the file, relog and you should see the effects.






      share|improve this answer




























      • This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

        – bmbaker
        Oct 7 '12 at 18:01






      • 2





        Works in Ubuntu 18.04.

        – Ives
        Jul 3 '18 at 13:50















      48


















      Delaying autostart with inbuilt delay option




      Note: Only works with desktop sessions that recognize the X-GNOME-Autostart-Delayparameter (e.g. Unity, Unity2D, GNOME). This will not work for LXDE, XFCE, KDE, etc.




      With this solution there's no need for a script or sleep. Head to your autostart folder:



      nautilus ~/.config/autostart


      Find the .desktop file that corresponds with your application and open it in a text editor, e.g. gedit:



      gedit ~/.config/autostart/application.desktop


      Append the following line to the file:



      X-GNOME-Autostart-Delay=foo


      where foo is the time in seconds you want to delay the application launch by, e.g.:



      X-GNOME-Autostart-Delay=60


      Save the file, relog and you should see the effects.






      share|improve this answer




























      • This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

        – bmbaker
        Oct 7 '12 at 18:01






      • 2





        Works in Ubuntu 18.04.

        – Ives
        Jul 3 '18 at 13:50













      48














      48










      48









      Delaying autostart with inbuilt delay option




      Note: Only works with desktop sessions that recognize the X-GNOME-Autostart-Delayparameter (e.g. Unity, Unity2D, GNOME). This will not work for LXDE, XFCE, KDE, etc.




      With this solution there's no need for a script or sleep. Head to your autostart folder:



      nautilus ~/.config/autostart


      Find the .desktop file that corresponds with your application and open it in a text editor, e.g. gedit:



      gedit ~/.config/autostart/application.desktop


      Append the following line to the file:



      X-GNOME-Autostart-Delay=foo


      where foo is the time in seconds you want to delay the application launch by, e.g.:



      X-GNOME-Autostart-Delay=60


      Save the file, relog and you should see the effects.






      share|improve this answer
















      Delaying autostart with inbuilt delay option




      Note: Only works with desktop sessions that recognize the X-GNOME-Autostart-Delayparameter (e.g. Unity, Unity2D, GNOME). This will not work for LXDE, XFCE, KDE, etc.




      With this solution there's no need for a script or sleep. Head to your autostart folder:



      nautilus ~/.config/autostart


      Find the .desktop file that corresponds with your application and open it in a text editor, e.g. gedit:



      gedit ~/.config/autostart/application.desktop


      Append the following line to the file:



      X-GNOME-Autostart-Delay=foo


      where foo is the time in seconds you want to delay the application launch by, e.g.:



      X-GNOME-Autostart-Delay=60


      Save the file, relog and you should see the effects.







      share|improve this answer















      share|improve this answer




      share|improve this answer








      edited May 29 at 14:13









      noraj

      5023 silver badges11 bronze badges




      5023 silver badges11 bronze badges










      answered Oct 1 '12 at 7:08









      GlutanimateGlutanimate

      16.8k9 gold badges76 silver badges136 bronze badges




      16.8k9 gold badges76 silver badges136 bronze badges















      • This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

        – bmbaker
        Oct 7 '12 at 18:01






      • 2





        Works in Ubuntu 18.04.

        – Ives
        Jul 3 '18 at 13:50

















      • This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

        – bmbaker
        Oct 7 '12 at 18:01






      • 2





        Works in Ubuntu 18.04.

        – Ives
        Jul 3 '18 at 13:50
















      This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

      – bmbaker
      Oct 7 '12 at 18:01





      This works very well in both ubuntu 12.04 and in 12.10-development release using Gnome-shell 3.6

      – bmbaker
      Oct 7 '12 at 18:01




      2




      2





      Works in Ubuntu 18.04.

      – Ives
      Jul 3 '18 at 13:50





      Works in Ubuntu 18.04.

      – Ives
      Jul 3 '18 at 13:50













      19


















      Try this: bash -c "sleep 10 && firefox"






      share|improve this answer





















      • 1





        10x a lot, why does just sleep 10 && firefox not work?

        – user3804598
        Jan 2 '18 at 20:43















      19


















      Try this: bash -c "sleep 10 && firefox"






      share|improve this answer





















      • 1





        10x a lot, why does just sleep 10 && firefox not work?

        – user3804598
        Jan 2 '18 at 20:43













      19














      19










      19









      Try this: bash -c "sleep 10 && firefox"






      share|improve this answer














      Try this: bash -c "sleep 10 && firefox"







      share|improve this answer













      share|improve this answer




      share|improve this answer










      answered Mar 2 '11 at 10:03









      lukaszlukasz

      1,8312 gold badges19 silver badges27 bronze badges




      1,8312 gold badges19 silver badges27 bronze badges










      • 1





        10x a lot, why does just sleep 10 && firefox not work?

        – user3804598
        Jan 2 '18 at 20:43












      • 1





        10x a lot, why does just sleep 10 && firefox not work?

        – user3804598
        Jan 2 '18 at 20:43







      1




      1





      10x a lot, why does just sleep 10 && firefox not work?

      – user3804598
      Jan 2 '18 at 20:43





      10x a lot, why does just sleep 10 && firefox not work?

      – user3804598
      Jan 2 '18 at 20:43











      6


















      You could try to change the command to this:



      sleep 10 && firefox


      Some people say it works, some say it doesn't, if this is your case, and it does not work, you can try with:



      xterm -e 'sleep 10 && firefox'





      share|improve this answer






























        6


















        You could try to change the command to this:



        sleep 10 && firefox


        Some people say it works, some say it doesn't, if this is your case, and it does not work, you can try with:



        xterm -e 'sleep 10 && firefox'





        share|improve this answer




























          6














          6










          6









          You could try to change the command to this:



          sleep 10 && firefox


          Some people say it works, some say it doesn't, if this is your case, and it does not work, you can try with:



          xterm -e 'sleep 10 && firefox'





          share|improve this answer














          You could try to change the command to this:



          sleep 10 && firefox


          Some people say it works, some say it doesn't, if this is your case, and it does not work, you can try with:



          xterm -e 'sleep 10 && firefox'






          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Mar 2 '11 at 8:10









          sebikulsebikul

          1,7901 gold badge14 silver badges16 bronze badges




          1,7901 gold badge14 silver badges16 bronze badges
























              5


















              I had to use this to get it to work for skype: sh -c "sleep 10 && skype &" in Ubuntu 12.04






              share|improve this answer
































                5


















                I had to use this to get it to work for skype: sh -c "sleep 10 && skype &" in Ubuntu 12.04






                share|improve this answer






























                  5














                  5










                  5









                  I had to use this to get it to work for skype: sh -c "sleep 10 && skype &" in Ubuntu 12.04






                  share|improve this answer
















                  I had to use this to get it to work for skype: sh -c "sleep 10 && skype &" in Ubuntu 12.04







                  share|improve this answer















                  share|improve this answer




                  share|improve this answer








                  edited Sep 28 '12 at 17:29









                  Anwar

                  59.6k26 gold badges161 silver badges266 bronze badges




                  59.6k26 gold badges161 silver badges266 bronze badges










                  answered Apr 29 '12 at 14:13









                  ShaunShaun

                  731 silver badge4 bronze badges




                  731 silver badge4 bronze badges































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f28685%2fhow-can-i-delay-a-specific-program-on-startup%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown









                      Popular posts from this blog

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?