I ma using gmail.py from ArchWiki to display new mail count in gmail. The script works fine and displays my new mail count correctly.
The problem I am facing is when I restart conky after adding the above script to my conky.config conky took a little time(arnd 4-5s) to load and display. The reason I believe is gmail.py take sometime to fetch mail count thereby leading to conky's delay.
By delay I mean conky display's nothing for around 4-5s when I run it.
Now, as soon as I remove gmail.py conky is back to normal.
So, I was thinking is there any in-built feature in conky which make sure that other conky objects like cpu temp,uptime,date etc are loaded and displayed while it executes gmail.py in background and than update conky accordingly.
Relevant line in conky:
Gmail: ${color red}${execpi 900 python /home/ranrag/.scripts/gmail.py}${color}
I am using ubuntu 12.04 and openbox.
sleep command during init. – RanRag Jun 28 '12 at 6:31