Comment 4 for bug 193985

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, James, but calling ui_init() in check is the wrong way to fix it IMHO with the current code structure, since ui_init() will bring up the main window. But --check should just keep the tray icon alive and process events there. In gtk this can be achieved with gtk.main(). Does Qt have a similar 'static' function?

If not, can we change ui_main_loop() to check for an initialized mw first, and if that does not exist, run some exec() function on the tray icon instead?

If that is not suitable for the Qt implementation, I could also split ui_init() into ui_init() and ui_show_main() upstream, if that's better?