Hi, 

I've written a statusbar script to periodically fetch mail and update
counts.  I set the timer for this script to 2.5 minutes.   But if I
check my mail manually, I don't have a nice way to update the counts (I
have to wait till the timer reaches the end of it's 2.5 minute period).  

What I do for now is restart Ion if the wrong counts really bother me. 

The problem as I see it is that the namespace for the statusbar is
issolated from the namespace for the Ion session, so I can't define a
function that I can call from Ion.  And there's no `kpress' function in
statusbar namespace to bind keystrokes with.

I had an idea, but before I played around with it, I wanted to see what
you all thought.  I just realized that I can call `ioncore.create_timer'
and `mod_statusbar.inform' in a normal Ion script, which resolves my
namespace problem.  However, I'm bypassing the ion-statusd in doing
this.  

Do I loose anything by bypassing ion-statusd and calling
`ioncore.create_timer' and `mod_statusbar.inform' directly from a
standard Ion script (assuming a statusbar has already been created)?  My
best guess is that `ion-statusd' might have been broken off from the
main `ion3' program as its own daemon for performance reasons, but I'm
not sure.

Thanks,
Sukant

Reply via email to