You need to set the environment variable AFNI_GLOBAL_SESSION -- you can do this in .afnirc or .cshrc or at the command line, but not in the .afni.startup_script file. See README.environment and README.setup for how to do it in the .afnirc file.
got to run - bob cox