aaron-kelley.net

My little corner of the Internet

Cygwin/X XWin Server leaves an xterm window behind when starting

When you start up Cygwin’s X.Org X11 server via startxwin.exe, it likes to leave an xterm window open on your desktop.

I suppose this is kind of handy if you were manually starting Cygwin/X, it’s pretty annoying if you have it set to start up when you log in to Windows.  To keep this from happening, you just need to add an empty .startxwinrc file to your Cygwin home directory.  That is, start the Cygwin bash shell, and use this command:

touch .startxwinrc

That’s it!  No more xterm windows popping up.

Oh, if you’d rather have something besides xterm start up when you start Cygwin/X, you can just add a list of commands to .startxwinrc and it will execute them after starting the X.Org server.

Tags:

One Response to “Cygwin/X XWin Server leaves an xterm window behind when starting”

  1. Steven says:

    Thanks for posting this! What a simple solution to an otherwise annoying little problem!

Leave a Reply

This site is protected by Akismet. I now receive too many spam comments to manually check them all for misclassifications. If you suspect that your comment has been filtered as spam (i.e., it does not appear right away), please try rewording it and submitting again. Using no more than one hyperlink will also improve the chances of your comment not being accidentally filtered as spam.
7,319 spam comments detected since August 1, 2009.