But I have this ugly console hanging around. When I kill it, it kills X as well. Is there a way to have an icon that does not create a superfluous console window?
You could start an application (including xterm) which is initially
iconified. That would move it out of sight. This should work:
xterm -iconic
The startxwin.sh script needs _something_ that is holding onto the shell
script, to prevent it from exiting.
I don't think I made myself clear! When I said "ugly console" I meant
the cmd.exe console (possibly running bash). I think you are talking
about the initial xterm. The initial xterm is not a problem. How can I start X without running cmd.exe?