xhost problem?

Felipe Gasper fgasper@uiuc.edu
Fri Jun 6 03:04:00 GMT 2003


	Since Cygwin/XFree86 now has a functioning rootless mode, I would like to start 
it up when Windows starts up. I have two computers networked: my Windows machine 
and a FreeBSD box that does web serving, mail, DHCP/NAT, etc. Since I often 
connect to the FBSD box via serial terminal over a null modem, I use xhost to 
allow it to run applications on the Cygwin/XF86 server.
	My problem is that when starting up, the start script that I have in my Startup 
directory doesn't do the xhost correctly. I have (essentially) the following in 
my startup batch script:

@echo off


if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix

if "%OS%" == "Windows_NT" goto OS_NT

REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me



REM Windows NT/2000/XP
echo startxwin.bat - Starting on Windows NT/2000/XP

start XWin -multiwindow
run xhost +
rem run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e

(The last two lines are one line in the batch file.) When this script runs at 
system startup, the xhost line "doesn't take", as typing "xhost" from a Cygwin 
bash shell indicates when the system is loaded. Two things, though, can make the 
script do the xhost correctly: 1) uncommenting the xterm, or 2) running the 
unmodified script after system startup.

Does anyone have any ideas on this? Hopefully this isn't somnething that's been 
discussed to death; I did comb the archives and didn't find anything.

Thanks for reading!

-Felipe Gasper
Champaign, IL

Felipe M. L. M. Gasper

Judge ideas, not people.
Love people, not ideas.

More information about the Cygwin-xfree mailing list