dialog icon indicating copy to clipboard operation
dialog copied to clipboard

linux: lazy call XInitThreads

Open Adphi opened this issue 2 years ago • 1 comments

This prevents a program that can run as a command line tool from displaying "Unable to init server: Could not connect: Connection refused".

Adphi avatar Apr 17 '23 10:04 Adphi

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:

  1. rename checkStatus() to lazyInit() or similar
  2. drop the initSuccess global (ie. panic() within the lazy init block that calls gtk_init_check)

sqweek avatar May 11 '23 15:05 sqweek