If you are running OSX 10.7 or newer and X11.app use:
defaults write org.x.X11 app_to_run /usr/bin/true
For XQuartz.app use:
defaults write org.macosforge.xquartz.X11 app_to_run /usr/bin/true
If you are running OSX 10.7 or newer and X11.app use:
defaults write org.x.X11 app_to_run /usr/bin/true
For XQuartz.app use:
defaults write org.macosforge.xquartz.X11 app_to_run /usr/bin/true