Question to autostart of programs via system settings

Started by mylo, 2014/01/26, 12:19:58

Previous topic - Next topic

mylo

Hi all,

I put iceweasel and kmail to autostarting via the system setting. It seems that the programs start very fast and are up and running before the internet connection is established. So getting the home page and the newest mail fail. OS is on a SSD.

How can I bring the autostart to wait one or more seconds?

dibl

In your startup script, use "sleep n" where "n" is seconds.  Here is an example:


#!/bin/bash
sleep 30 && # 0 good for Xfce - use 20 to 30 for Gnome
conky -c /home/don/Conky/conkymain &
sleep 8 &&
radiotray &
#/opt/MonitorSoftware/agent start &
sleep 1 &&
#end
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

mylo

thanks dibl, but right now I did this via the "systemsettings". Is there an option too for sleep-mode?

dibl

Quote from: mylo on 2014/01/26, 16:23:06
thanks dibl, but right now I did this via the "systemsettings" ...


Upppps -- sorry, you did say that and I overlooked it.


In systemsettings > Startup and Shutdown > Autostart, it shows "Add Script" as a menu choice -- that is where my script is invoked on my system.


Sleep and hibernation are set somewhere else -- maybe Power Management > Button Events Handling?
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

der_bud

mylo, in Systemsettings > Startup and Shutdown > Autostart you have iceweasel and kmail? Select one, goto settings, open tab program (I think, german version here) and where the actual command is given, put "sleep 5 &&" in front of it (example: change "iceweasel %u  ->  "sleep 5 && iceweasel %u).
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

mylo

Thanks guys, and dibl, I oversaw the "Add Script" option. Have to check and adapt right now.