Siduction Forum

Siduction Forum => Software - Support => Topic started by: mylo on 2014/01/26, 12:19:58

Title: Question to autostart of programs via system settings
Post by: mylo on 2014/01/26, 12:19:58
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?
Title: Re: Question to autostart of programs via system settings
Post by: dibl on 2014/01/26, 12:54:50
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
Title: Re: Question to autostart of programs via system settings
Post by: mylo on 2014/01/26, 16:23:06
thanks dibl, but right now I did this via the "systemsettings". Is there an option too for sleep-mode?
Title: Re: Question to autostart of programs via system settings
Post by: dibl on 2014/01/26, 19:34:07
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?
Title: Re: Question to autostart of programs via system settings
Post by: der_bud on 2014/01/26, 20:17:02
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).
Title: Re: Question to autostart of programs via system settings
Post by: mylo on 2014/01/27, 20:49:44
Thanks guys, and dibl, I oversaw the "Add Script" option. Have to check and adapt right now.