From: Roger Pack Date: 2010-06-02T02:00:37+09:00 Subject: [ruby-core:30550] Re: tk doesn't startup well in doze Interesting. With 1.9.1 # module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end That line causes no mystery background window, and things work as expected. > ------------------------------------------------------------- > module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = false; end > ------------------------------------------------------------- That line appears to have no effect (runs as normal, i.e. mystery window, hang on exit). With 1.9.3 I now get this (exits fine, with mystery window, but running an app yields:) irb(main):009:0> Tk.mainloop RuntimeError: can't unset "__initail_state_of_rubytk__": no such variable HTH. -rp