1 Sep 2009 13:58
RE: Problems starting "rxvt" from startxwin.bat
Phil Betts <Phil.Betts <at> ascribe.com>
2009-09-01 11:58:57 GMT
2009-09-01 11:58:57 GMT
Jose Luis wrote: > I can start "xterm" from startxwin.bat: > > %RUN% xterm -e /usr/bin/bash -l > > but no "rxvt": > > %RUN% rxvt -bg white -fg black -e /bin/bash > > although it can be started from command line: > > jlfdiaz <at> JLFDIAZWXP ~ > $ rxvt -bg white -fg black -e /bin/bash & > > > Why does rvxt starting from startxwin.bat fail? This is almost certainly a timing issue. The line in the batch file that starts the server uses %RUN% to start it in the background. This means that the following commands in the batch file may execute before the X server has completed (or even started) its initialisation. I suspect that the reason the two terminals behave differently is that, xterm tries to connect to the server a number of times before giving up, whereas rxvt gives up at the first failure. Because the time taken to initialise the X server can vary, rather than using just sleep, I have added the following: REM wait up to 30 seconds for the X server(Continue reading)
RSS Feed