On 2007-05-21, Benno Kröck <[EMAIL PROTECTED]> wrote:
> this startup message has already been discussed in this list. But I haven't 
> understood how to avoid it. I'm using latest release candidate. The message 
> appears almost every time after booting the system. It doesn't occur after 
> restarting the xorg server.

Your system is too loaded... probably loading Gnome or KDE shit... 
Or perhaps your using some additional meter that takes ages on load,
or $MAIL is huge.

> I remember the error message might be result of a too small delay. So
> where can I change its value?

mod_statusbar/main.c 

It's a huge 5 seconds by default -- longer than a program should wait.
I will do something about it for the next RC. The simplest approach
is to not wait. It's not strictly necessary, but there are some
benefits: 1) calculating the statusbar size before workspaces are
loaded. If this is not done, it may be necessary to considerably 
adjust the current layout later on. 2) Displaying error messages
in the same xmessage as rest of Ion startup errors are displayed.

I'll probably go for the next simplest approach: wait just a few
seconds, and if there's not enough response, don't wait, but don't
fail either. It's a dirty hack, but much simpler than other 
possibilities.

(I don't particularly like the present statusd that much. It's in
general a quick and dirty hack. I'd like a better general-purpose 
one, that used unix sockets, etc. DBus would in theory also be an
option -- in principle it's just the right thing -- I just don't 
like the complex API that much, and the UTF-8 monoculturism [1]. 
Not that I plan to write a better statusd, but it's a project idea
for someone.)

  [1]: http://iki.fi/tuomov/b/archives/2006/08/26/T20_16_06/

-- 
Tuomo

Reply via email to