Whenever I start Cygwin's X server using the "XWin Server" link in my Start menu, or by running startxwin
from a Cygwin shell, I automatically get an xterm window appearing, which I neither want nor need.
How do I avoid that?
(Question inspired by this comment by Stijn Vanpoucke over on Stack Overflow)
Best Answer
It seems that startxwin's behavior has changed since @me_and originally answered the question, so simply creating an empty .startxwinrc in your home directory won't work anymore.
I found an answer here. In essence when the last command in .startxwinrc exits, the server will exit. If you want to prevent that, you can put this as the last line in your .startxwinrc:
This won't start any client programs, but will also prevent .startxwinrc from exiting.