Does the afni GUI start by itself? Is this problem limited to the Xvfb implementation that is used in the scripting?
Xvfb is used by @chauffeur_afni and other related scripts in AFNI. These are mostly written in tcsh. Configure the various shells to be configured to set the DYLD_LIBRARY_PATH to the path of library files that are provided with XQuartz. For example, in your .bashrc and .zshrc files in your home directory, you may want to add lines like this one:
export DYLD_LIBRARY_PATH=/opt/X11/lib/flat_namespace
In tcsh, you would modify your ~/.cshrc (~ is the home directory) similarly to contain
setenv DYLD_LIBRARY_PATH /opt/X11/lib/flat_namespace
Edited 1 time(s). Last edit at 04/08/2022 11:35AM by Daniel Glen.