Instead of trying to infer what the default X server is by looking for DISPLAY environment variable, just have an option to not set the DISPLAY variable in stim_server.launch_screen such that the user's OS can determine where to send the visual_stim screen window.
Tested on Linux. Should be irrelevant on Mac. Not tested on Window.
Instead of trying to infer what the default X server is by looking for DISPLAY environment variable, just have an option to not set the DISPLAY variable in stim_server.launch_screen such that the user's OS can determine where to send the visual_stim screen window.
Tested on Linux. Should be irrelevant on Mac. Not tested on Window.