How to disable the opening of XTerm when you start X11 on OS X

Some applications like OpenOffice II, in OS X, run under X11 platform. Due to this, when you open this type of applications the X11 environment starts, opening by default XTerm terminal. To avoid this behaviour you have to edit, by hand, the init file of X11. This file is placed under

/etc/X11/xinit/xinitrc

and the only thing you have to do is to comment the line where it starts XTerm, that is#xterm

(Article written by Fran Horrillo)