dialog
dialog copied to clipboard
linux: lazy call XInitThreads
This prevents a program that can run as a command line tool from displaying "Unable to init server: Could not connect: Connection refused".
I looked at this PR when you first opened it and was going to do something with it but I haven't had much bandwidth lately sorry.
Thanks for your work! The change makes sense, but I'd like to take it a bit further before landing it:
- rename
checkStatus()tolazyInit()or similar - drop the
initSuccessglobal (ie.panic()within the lazy init block that callsgtk_init_check)