From: Jens M Andreasen <jens.andreasen(a)chello.se>
Suggestion for running headless:
  if(getenv("DISPLAY"))
    isGraphic = TRUE;
  else
    isGraphic = FALSE; 
I hope there is a command line option for turning the
GUI off. Otherwise I would always get the GUI.
Juhana
--
  
http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software