Mac OS X X11 Server, called X11.app, is configured to open a new xterm on launch by default. This default behavior can be pretty annoying, but can be easily disabled.
In order to stop Mac OS X X11.app from launching a new and empty xterm when launched for the first time, one must install a customized .xinitrc file into $HOME.
During start, X11.app looks for $HOME/.xinitrc and, if no one is found, it executes /etc/X11/xinit/xinitrc. It’s the /etc/X11/xinit/xinitrc script the one that launches an empty xterm.
To stop X11.app from launching an empty xterm:
cp /etc/X11/xinit/xinitrc $HOME/.xinitrc
- Edit $HOME/.xinitrc and remove the line that reads
This will prevent X11.app from starting useless client applications, like xterm, on launch.