Use a plain GMainLoop if running in headless mode..