On Thu, 20 Nov 2003, Chan Seng Loong wrote: > hi... > > I having problem using startx to startx the X window > or X server....... > > here are the error: > > Chan Seng Loong@amd1500mhz ~ > $ startx > + userclientrc=/home/Chan Seng Loong/.xinitrc > + userserverrc=/home/Chan Seng Loong/.xserverrc > + sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc > + sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc > + defaultclient=/usr/X11R6/bin/xterm > + defaultserver=/usr/X11R6/bin/X > + defaultclientargs= > + defaultserverargs= > + clientargs= > + serverargs= > + [ -f /home/Chan Seng Loong/.xinitrc ] > [: Seng: unknown operand > + [ -f /usr/X11R6/lib/X11/xinit/xinitrc ] > + defaultclientargs=/usr/X11R6/lib/X11/xinit/xinitrc > + [ -f /home/Chan Seng Loong/.xserverrc ] > [: Seng: unknown operand > + [ -f /usr/X11R6/lib/X11/xinit/xserverrc ] > + whoseargs=client > + [ x != x ] > + [ x = x ] > + [ x = x ] > + client=/usr/X11R6/lib/X11/xinit/xinitrc > + [ x = x ] > + [ x = x -a x = x ] > + server= > + [ x = x ] > + XAUTHORITY=/home/Chan Seng Loong/.Xauthority > + export XAUTHORITY > + removelist= > + xinit /usr/X11R6/lib/X11/xinit/xinitrc -- > > + userresources=/home/Chan Seng Loong/.Xresources > + usermodmap=/home/Chan Seng Loong/.Xmodmap > + sysresources=/usr/X11R6/lib/X11/xinit/.Xresources > + sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap > + [ -f /usr/X11R6/lib/X11/xinit/.Xresources ] > + [ -f /usr/X11R6/lib/X11/xinit/.Xmodmap ] > + [ -f /home/Chan Seng Loong/.Xresources ] > [: Seng: unknown operand > + [ -f /home/Chan Seng Loong/.Xmodmap ] > [: Seng: unknown operand > + twm > + xclock -geometry 50x50-1+1 > + xterm -geometry 80x50+494+51 > + xterm -geometry 80x20+494-0 > + exec xterm -geometry 80x66+0+0 -name login > Fontconfig error: Cannot load default config file > Warning: Cannot convert string "" to type XftFont > > I tried to fix the probelm using the XF86Config and .xinitrc file..... > but failed..... > > Can someone help me to solve the problem......? > > Thanks > John John, Your username (and, consequently, your home directory) has spaces in it. The startx script is not space-in-filename friendly (missing quotes), and thus some parts of it don't run correctly. Below is a patch to the startx script that should make it work with home dirs containing spaces (untested). Please save the attached patch as /tmp/startx.patch and run 'cd /usr/X11R6/bin && patch -p0 < /tmp/startx.patch'. You should then be able to use the script. Harold, this patch is against /usr/X11R6/bin/startx from XFree86-bin-4.3.0-7 (CVS revision "XFree86: startx.cpp 3.16"). I have a feeling this file is auto-generated (haven't looked at the build process). I don't know if you can incorporate this patch as-is as Cygwin-specific, or if you need a patch to the original source, startx.cpp (either for Cygwin or to send upstream). Let me know either way, and I'll either create a ChangeLog for this patch, or create one against the CVS source. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton