That is, if you're running in a headless environment, can't you just use a virtual framebuffer, and the dialog box will just be silently generated and closed? I don't see any problem with that.