This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] Syntax to delay application autostart?

cme

Sun Mar 12, 2017 11:03:09 am

Hi all,
my first post here - and I suspect it is an easy one :)
Searched the forum thoroughly but could not find a hint to my problem:
I would simply like to delay the autostart of an application by a few seconds.

What I have tried:
- added a shortcut to the desktop
- copied that shortcut to autostart (gui); well, in my German Zorin it is called "Startprogramme"

That worked. But how do I add an delay?

So, let that application be the system monitor. In that case I have edited it to:
sleep=15; gnome-system-monitor
sleep=15 && gnome-system-monitor
delay 15; gnome-system-monitor
delay=15; gnome-system-monitor

All to no avail... surely there is an easy way, anyone??
Thanks!

Swarfendor437

Sun Mar 12, 2017 11:26:01 am

cme

Sun Mar 12, 2017 2:10:51 pm

Thank you for the quick hint!
Got it working finally with:
sh -c "sleep TIME; COMMAND"
(no idea why it didn't work before as I had tried that too - perhaps after issuing it once in the terminal?)

Swarfendor437

Sun Mar 12, 2017 7:46:05 pm

Your skills are way beyond mine so I can't comment! ;) :D

Have marked this thread as [SOLVED]