@echo off REM Special startxwin.bat tailored for XP Pro and Linux font server REM Waits until fully started before xsetroot sets cursor and dummy window colour REM After 10 seconds finishes anyway REM Need to set the XFT entry and the display number you want to use. SET XFT=linuxfontserver.yourdomain SET LASTLINE="winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display." SET DISNO=2 SET DISPLAY=127.0.0.1:%DISNO%.0 SET CYGWIN_ROOT=\cygwin SET PATH=%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH% if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X%DISNO% goto GOFORIT echo Another or a dead instance detected...continuing anyway!! attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X%DISNO% del %CYGWIN_ROOT%\tmp\.X11-unix\X%DISNO% :GOFORIT echo XWin starting for - echo Display - %DISPLAY% echo Font Server - %XFT% start XWin :%DISNO% -emulate3buttons -multiwindow -clipboard -fp tcp/%XFT%:7100 set /a COUNT=0 :WAITFORIT sleep 1 set /a COUNT+=1 echo ...starting...%COUNT%... if %COUNT% GEQ 10 goto FINISHOFF find %LASTLINE% < %CYGWIN_ROOT%\tmp\XWinrl.log > nul if errorlevel 1 goto WAITFORIT :FINISHOFF xsetroot -cursor_name left_ptr -fg white -bg black -solid steelblue echo XWin ready to use! sleep 3