Advertisement

Ubuntu: How can I reduce the time taken to login by postponing|delaying some startup applications?

Ubuntu: How can I reduce the time taken to login by postponing|delaying some startup applications? Ubuntu: How can I reduce the time taken to login by postponing/delaying some startup applications?


The Question: I have setup some applications to startup on each login (e.g., redshift-gtk,
gtg) automatically but after adding these to startup applications (System -
> Preferences -> Startup Applications) obviously the time taken to login has
increased. Due to all this the time it takes for my panels, desktop etc to
appear is too long - until which I am forced to wait.
I don't need these apps to be available immediately, but it would be good if
they startup eventually, meanwhile the ubuntu menu/panel is available for
running other apps that I might need to.
I tried using at command, with the intention of editing all startup
applications to put the commands in the at queue, but this didn't work since
the apps don't get the necessary environment variables (like DISPLAY).
Is this what nice command is used for? Any other ideas how I can accomplish
this? If possible, I would like to avoid editing the startup applications
commands, since this would mean a lot of effort to replicate on other machines
I use.

Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful)

== This solution helped 2 people ==
Use the 'sleep' command.
In System -> Preferences -> Startup Applications, edit the command for the
programs you want to delay to:
sleep 10 && COMMAND
Replace 10 with the number of seconds you want it to wait and COMMAND with what
was in the command box originally.

== This solution helped 5 people ==
I found that just using sleep 10 && COMMAND as the command name didn't work. I
had issues with both conky and xchat loading too early and getting corrupted
somehow. I had to write a little script called ~/bin/startup and put this in
it:
#!/bin/bash
sleep 10
xchat &
conky &
You need change its permissions to be allowed to be executed with chmod +x ~/
bin/startup and then just replace the start-up applications entry with the
command startup and it'll fire off everything in the script.
You could have one file for each application if you were that way inclined.

With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: | Images: & others | With thanks to user Oli ( user koushik ( user dv3500ea ( user Amith KK ( user aendruk ( and the Stack Exchange Network ( Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com.

Ubuntu,gnome,startup,question,answer,compression,extract,answers,

Post a Comment

0 Comments