The command-line handler takes place in nsAppRunner.cpp#1077: startupNotifier->Observe(nsnull, APPSTARTUP_TOPIC, nsnull); The window watcher is initialized sometime later (lines 1144-1152). In our particular application, we want to have four specific windows open before we hit Ensure1Window (line 1219). The simplest way biesi and I see is to initialize the window watcher before the command-line handler. bsmedberg, what do you think?
No longer relevant with the toolkit switch.