public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Re: Cygwin XFree86 startx Problem
@ 2003-11-21 19:20 Chan Seng Loong
  2003-11-21 19:52 ` Igor Pechtchanski
  0 siblings, 1 reply; 22+ messages in thread
From: Chan Seng Loong @ 2003-11-21 19:20 UTC (permalink / raw)
  To: cygwin-xfree

hi again...

Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
operand" problem is eleminated with the power of ""
qutoes :-D

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 ]
+ defaultclientargs="/home/Chan Seng Loong/.xinitrc"
+ [ -f /home/Chan Seng Loong/.xserverrc ]
+ [ -f /usr/X11R6/lib/X11/xinit/xserverrc ]
+ whoseargs=client
+ [ x != x ]
+ [ x = x ]
+ [ x = x ]
+ client="/home/Chan Seng Loong/.xinitrc"
+ [ x = x ]
+ [ x = x -a x = x ]
+ server=
+ [ x = x ]
+ XAUTHORITY=/home/Chan Seng Loong/.Xauthority
+ export XAUTHORITY
+ removelist=
+ eval set -- "/home/Chan Seng Loong/.xinitrc"  --
+ set -- /home/Chan Seng Loong/.xinitrc --
+ xinit /home/Chan Seng Loong/.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 ]
+ [ -f /home/Chan Seng Loong/.Xmodmap ]
+ 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

Now the problem is the Fontconfig and freetype2
packages.... yes, I'm doing the "Install from
Internet"
but in the XFree86 category... I only find:

WindowMaker
XFree86-base
XFree86-bin
XFree86-bin-icons
XFree86-doc
XFree86-etc
XFree86-f100
XFree86-fcyr
XFree86-fenc
XFree86-fnts
XFree86-fscl
XFree86-fsrv
XFree86-html
XFree86-jdoc
XFree86-lib
XFree86-lib-compact
XFree86-man
XFree86-nest
XFree86-prog
XFree86-prt
XFree86-ps
XFree86-startup-script
XFree86-xserv
XFree86-xwinclip
Xaw3d
cgoban
fvwm
grace
gv
lessitf
libProplist
openbox
x2x
xfig
xfig-base
xfig-bin
xfig-doc
xfig-etc
xfig-lib
xfig-man
xgraph
xwinclip

Hmmm...........

maybe they should include a search package
option......
can't find the Fontconfig and freetype2...

Btw, is fontconfig file in etc/X11 directory?


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-21 19:20 Cygwin XFree86 startx Problem Chan Seng Loong
@ 2003-11-21 19:52 ` Igor Pechtchanski
  2003-11-21 20:04   ` Harold L Hunt II
  0 siblings, 1 reply; 22+ messages in thread
From: Igor Pechtchanski @ 2003-11-21 19:52 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, 21 Nov 2003, Chan Seng Loong wrote:

> hi again...
>
> Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
> operand" problem is eleminated with the power of ""
> qutoes :-D

Good.  Harold, how do you want to go about incorporating the patch?

> [snip]
> Fontconfig error: Cannot load default config file
> Warning: Cannot convert string "" to type XftFont
>
> Now the problem is the Fontconfig and freetype2 packages....
> yes, I'm doing the "Install from Internet"
> but in the XFree86 category... I only find:
> [snip]

They're both in the Libs category.

> Hmmm...........
>
> maybe they should include a search package
> option......
> can't find the Fontconfig and freetype2...
>
> Btw, is fontconfig file in etc/X11 directory?

First off, there's a package search page on the internet:
<http://cygwin.com/packages/>.  You can also use the "Full" view in the
setup program to see all packages in alphabetical order (or the "Not
installed" view to limit the packages to those not on your system).
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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-21 19:52 ` Igor Pechtchanski
@ 2003-11-21 20:04   ` Harold L Hunt II
  2003-11-22 14:25     ` Igor Pechtchanski
  0 siblings, 1 reply; 22+ messages in thread
From: Harold L Hunt II @ 2003-11-21 20:04 UTC (permalink / raw)
  To: cygwin-xfree

Igor,

Igor Pechtchanski wrote:

> On Fri, 21 Nov 2003, Chan Seng Loong wrote:
> 
> 
>>hi again...
>>
>>Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
>>operand" problem is eleminated with the power of ""
>>qutoes :-D
> 
> 
> Good.  Harold, how do you want to go about incorporating the patch?

As you suspected, I think this is actually a generated file.  Granted, 
the input is similar to the output, but it is a different file that 
needs to be patched.  Again, I cannot check this right now.

As far as what to do with the patch, it is hard to say.  Are you just 
asking about how it will get into my next release?  That should be easy. 
  As far as finding it an upstream home, we still have to wait for the 
tree on freedesktop.org to finish being setup.

Harold


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-21 20:04   ` Harold L Hunt II
@ 2003-11-22 14:25     ` Igor Pechtchanski
  2003-11-22 18:36       ` Harold L Hunt II
  0 siblings, 1 reply; 22+ messages in thread
From: Igor Pechtchanski @ 2003-11-22 14:25 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, 21 Nov 2003, Harold L Hunt II wrote:

> Igor,
>
> Igor Pechtchanski wrote:
>
> > On Fri, 21 Nov 2003, Chan Seng Loong wrote:
> >
> >
> >>hi again...
> >>
> >>Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
> >>operand" problem is eleminated with the power of ""
> >>qutoes :-D
> >
> >
> > Good.  Harold, how do you want to go about incorporating the patch?
>
> As you suspected, I think this is actually a generated file.  Granted,
> the input is similar to the output, but it is a different file that
> needs to be patched.  Again, I cannot check this right now.
>
> As far as what to do with the patch, it is hard to say.  Are you just
> asking about how it will get into my next release?  That should be easy.
>   As far as finding it an upstream home, we still have to wait for the
> tree on freedesktop.org to finish being setup.
>
> Harold

Ok, I'll try to checkout the CVS tree at some point soon and produce this
patch off the correct file.
	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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-22 14:25     ` Igor Pechtchanski
@ 2003-11-22 18:36       ` Harold L Hunt II
  2003-11-29 18:57         ` Igor Pechtchanski
  0 siblings, 1 reply; 22+ messages in thread
From: Harold L Hunt II @ 2003-11-22 18:36 UTC (permalink / raw)
  To: cygwin-xfree

Igor,

Igor Pechtchanski wrote:
> On Fri, 21 Nov 2003, Harold L Hunt II wrote:
> 
> 
>>Igor,
>>
>>Igor Pechtchanski wrote:
>>
>>
>>>On Fri, 21 Nov 2003, Chan Seng Loong wrote:
>>>
>>>
>>>
>>>>hi again...
>>>>
>>>>Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
>>>>operand" problem is eleminated with the power of ""
>>>>qutoes :-D
>>>
>>>
>>>Good.  Harold, how do you want to go about incorporating the patch?
>>
>>As you suspected, I think this is actually a generated file.  Granted,
>>the input is similar to the output, but it is a different file that
>>needs to be patched.  Again, I cannot check this right now.
>>
>>As far as what to do with the patch, it is hard to say.  Are you just
>>asking about how it will get into my next release?  That should be easy.
>>  As far as finding it an upstream home, we still have to wait for the
>>tree on freedesktop.org to finish being setup.
>>
>>Harold
> 
> 
> Ok, I'll try to checkout the CVS tree at some point soon and produce this
> patch off the correct file.

Base the patch off of the SourceForge tree that we have for now:

http://sourceforge.net/projects/xoncygwin/


That's what I essentially do my builds from, so it should work. 
Hopefully the file in question is actually in that tree... if not, then 
just wait until our freedesktop.org tree is ready.

Harold


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-22 18:36       ` Harold L Hunt II
@ 2003-11-29 18:57         ` Igor Pechtchanski
  2003-12-02 20:44           ` Igor Pechtchanski
  0 siblings, 1 reply; 22+ messages in thread
From: Igor Pechtchanski @ 2003-11-29 18:57 UTC (permalink / raw)
  To: cygwin-xfree

On Sat, 22 Nov 2003, Harold L Hunt II wrote:

> Igor,
>
> Igor Pechtchanski wrote:
> > On Fri, 21 Nov 2003, Harold L Hunt II wrote:
> >
> >>Igor,
> >>
> >>Igor Pechtchanski wrote:
> >>
> >>
> >>>On Fri, 21 Nov 2003, Chan Seng Loong wrote:
> >>>
> >>>>hi again...
> >>>>
> >>>>Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
> >>>>operand" problem is eleminated with the power of ""
> >>>>qutoes :-D
> >>>
> >>>Good.  Harold, how do you want to go about incorporating the patch?
> >>
> >>As you suspected, I think this is actually a generated file.  Granted,
> >>the input is similar to the output, but it is a different file that
> >>needs to be patched.  Again, I cannot check this right now.
> >>
> >>As far as what to do with the patch, it is hard to say.  Are you just
> >>asking about how it will get into my next release?  That should be easy.
> >>  As far as finding it an upstream home, we still have to wait for the
> >>tree on freedesktop.org to finish being setup.
> >>
> >>Harold
> >
> > Ok, I'll try to checkout the CVS tree at some point soon and produce this
> > patch off the correct file.
>
> Base the patch off of the SourceForge tree that we have for now:
>
> http://sourceforge.net/projects/xoncygwin/
>
> That's what I essentially do my builds from, so it should work.
> Hopefully the file in question is actually in that tree... if not, then
> just wait until our freedesktop.org tree is ready.
>
> Harold

Harold,

The file (startx.cpp) is in xc/programs/xinit, and the xoncygwin tree only
has xc/programs/Xserver.  Are you going to use the tree on freedesktop.org
(which is already set up at "xorg") for further builds of the non-server
parts?  If so, should I use the MAIN branch there, or the XORG-CURRENT
branch?
	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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-29 18:57         ` Igor Pechtchanski
@ 2003-12-02 20:44           ` Igor Pechtchanski
  2003-12-03  1:38             ` Harold L Hunt II
  0 siblings, 1 reply; 22+ messages in thread
From: Igor Pechtchanski @ 2003-12-02 20:44 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2663 bytes --]

On Sat, 29 Nov 2003, Igor Pechtchanski wrote:

> On Sat, 22 Nov 2003, Harold L Hunt II wrote:
>
> > Igor,
> >
> > Igor Pechtchanski wrote:
> > > On Fri, 21 Nov 2003, Harold L Hunt II wrote:
> > >
> > >>Igor,
> > >>
> > >>Igor Pechtchanski wrote:
> > >>
> > >>
> > >>>On Fri, 21 Nov 2003, Chan Seng Loong wrote:
> > >>>
> > >>>>hi again...
> > >>>>
> > >>>>Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
> > >>>>operand" problem is eleminated with the power of ""
> > >>>>qutoes :-D
> > >>>
> > >>>Good.  Harold, how do you want to go about incorporating the patch?
> > >>
> > >>As you suspected, I think this is actually a generated file.  Granted,
> > >>the input is similar to the output, but it is a different file that
> > >>needs to be patched.  Again, I cannot check this right now.
> > >>
> > >>As far as what to do with the patch, it is hard to say.  Are you just
> > >>asking about how it will get into my next release?  That should be easy.
> > >>  As far as finding it an upstream home, we still have to wait for the
> > >>tree on freedesktop.org to finish being setup.
> > >>
> > >>Harold
> > >
> > > Ok, I'll try to checkout the CVS tree at some point soon and produce this
> > > patch off the correct file.
> >
> > Base the patch off of the SourceForge tree that we have for now:
> >
> > http://sourceforge.net/projects/xoncygwin/
> >
> > That's what I essentially do my builds from, so it should work.
> > Hopefully the file in question is actually in that tree... if not, then
> > just wait until our freedesktop.org tree is ready.
> >
> > Harold
>
> Harold,
>
> The file (startx.cpp) is in xc/programs/xinit, and the xoncygwin tree only
> has xc/programs/Xserver.  Are you going to use the tree on freedesktop.org
> (which is already set up at "xorg") for further builds of the non-server
> parts?  If so, should I use the MAIN branch there, or the XORG-CURRENT
> branch?
>         Igor

Harold,

Here's a patch against the HEAD of the MAIN branch in the xorg tree at
freedesktop.org.  ChangeLog is below.  Let me know if there's a problem.
	Igor
==============================================================================
ChangeLog:
2003-12-02  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
	* xc/programs/xinit/startx.cpp: Make space-friendly.

-- 
				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

[-- Attachment #2: Type: TEXT/PLAIN, Size: 3085 bytes --]

--- xc/programs/xinit/startx.cpp-orig	2003-12-02 13:10:12.000000000 -0500
+++ xc/programs/xinit/startx.cpp	2003-12-02 13:45:06.566899200 -0500
@@ -48,8 +48,9 @@ fi
 scoclientrc=$HOME/.startxrc
 #endif
 
-userclientrc=$HOME/.xinitrc
-userserverrc=$HOME/.xserverrc
+userclientrc="$HOME/.xinitrc"
+userserverrc="$HOME/.xserverrc"
+/* Note: XINITDIR and BINDIR should be space-free */
 sysclientrc=XINITDIR/xinitrc
 sysserverrc=XINITDIR/xserverrc
 defaultclient=BINDIR/xterm
@@ -64,19 +65,19 @@ if [ -f $scoclientrc ]; then
     defaultclientargs=$scoclientrc
 else
 #endif
-if [ -f $userclientrc ]; then
-    defaultclientargs=$userclientrc
-elif [ -f $sysclientrc ]; then
-    defaultclientargs=$sysclientrc
+if [ -f "$userclientrc" ]; then
+    defaultclientargs="\"$userclientrc\""
+elif [ -f "$sysclientrc" ]; then
+    defaultclientargs="\"$sysclientrc\""
 fi
 #ifdef SCO
 fi
 #endif
 
-if [ -f $userserverrc ]; then
-    defaultserverargs=$userserverrc
-elif [ -f $sysserverrc ]; then
-    defaultserverargs=$sysserverrc
+if [ -f "$userserverrc" ]; then
+    defaultserverargs="\"$userserverrc\""
+elif [ -f "$sysserverrc" ]; then
+    defaultserverargs="\"$sysserverrc\""
 fi
 
 whoseargs="client"
@@ -86,15 +87,15 @@ while [ x"$1" != x ]; do
     /''*|\./''*)
 	if [ "$whoseargs" = "client" ]; then
 	    if [ x"$clientargs" = x ]; then
-		client="$1"
+		client="\"$1\""
 	    else
-		clientargs="$clientargs $1"
+		clientargs="$clientargs \"$1\""
 	    fi
 	else
 	    if [ x"$serverargs" = x ]; then
-		server="$1"
+		server="\"$1\""
 	    else
-		serverargs="$serverargs $1"
+		serverargs="$serverargs \"$1\""
 	    fi
 	fi
 	;;
@@ -103,14 +104,14 @@ while [ x"$1" != x ]; do
 	;;
     *)
 	if [ "$whoseargs" = "client" ]; then
-	    clientargs="$clientargs $1"
+	    clientargs="$clientargs \"$1\""
 	else
 	    XCOMM display must be the FIRST server argument
 	    if [ x"$serverargs" = x ] && @@
 		 expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then
-		display="$1"
+		display="\"$1\""
 	    else
-		serverargs="$serverargs $1"
+		serverargs="$serverargs \"$1\""
 	    fi
 	fi
 	;;
@@ -124,7 +125,7 @@ if [ x"$client" = x ]; then
     if [ x"$clientargs" = x ]; then
 	client="$defaultclientargs"
     else
-	client=$defaultclient
+	client="$defaultclient"
     fi
 fi
 
@@ -134,12 +135,12 @@ if [ x"$server" = x ]; then
     if [ x"$serverargs" = x -a x"$display" = x ]; then
 	server="$defaultserverargs"
     else
-	server=$defaultserver
+	server="$defaultserver"
     fi
 fi
 
 if [ x"$XAUTHORITY" = x ]; then
-    XAUTHORITY=$HOME/.Xauthority
+    XAUTHORITY="$HOME/.Xauthority"
     export XAUTHORITY
 fi
 
@@ -172,9 +173,13 @@ EOF
 done
 #endif
 
-xinit $client $clientargs -- $server $display $serverargs
+XCOMM correctly process quotes, etc
+eval "set -- $client $clientargs -- $server $display $serverargs"
+
+xinit "$@"
 
 if [ x"$removelist" != x ]; then
+    XCOMM Note: this is still not space-friendly!
     xauth remove $removelist
 fi
 

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-12-02 20:44           ` Igor Pechtchanski
@ 2003-12-03  1:38             ` Harold L Hunt II
  0 siblings, 0 replies; 22+ messages in thread
From: Harold L Hunt II @ 2003-12-03  1:38 UTC (permalink / raw)
  To: cygwin-xfree

Igor,

Cool.  Thanks!

Harold

Igor Pechtchanski wrote:

> On Sat, 29 Nov 2003, Igor Pechtchanski wrote:
> 
> 
>>On Sat, 22 Nov 2003, Harold L Hunt II wrote:
>>
>>
>>>Igor,
>>>
>>>Igor Pechtchanski wrote:
>>>
>>>>On Fri, 21 Nov 2003, Harold L Hunt II wrote:
>>>>
>>>>
>>>>>Igor,
>>>>>
>>>>>Igor Pechtchanski wrote:
>>>>>
>>>>>
>>>>>
>>>>>>On Fri, 21 Nov 2003, Chan Seng Loong wrote:
>>>>>>
>>>>>>
>>>>>>>hi again...
>>>>>>>
>>>>>>>Thanks to Mr. Igor Pechtchanski, the "[: Seng: unknown
>>>>>>>operand" problem is eleminated with the power of ""
>>>>>>>qutoes :-D
>>>>>>
>>>>>>Good.  Harold, how do you want to go about incorporating the patch?
>>>>>
>>>>>As you suspected, I think this is actually a generated file.  Granted,
>>>>>the input is similar to the output, but it is a different file that
>>>>>needs to be patched.  Again, I cannot check this right now.
>>>>>
>>>>>As far as what to do with the patch, it is hard to say.  Are you just
>>>>>asking about how it will get into my next release?  That should be easy.
>>>>> As far as finding it an upstream home, we still have to wait for the
>>>>>tree on freedesktop.org to finish being setup.
>>>>>
>>>>>Harold
>>>>
>>>>Ok, I'll try to checkout the CVS tree at some point soon and produce this
>>>>patch off the correct file.
>>>
>>>Base the patch off of the SourceForge tree that we have for now:
>>>
>>>http://sourceforge.net/projects/xoncygwin/
>>>
>>>That's what I essentially do my builds from, so it should work.
>>>Hopefully the file in question is actually in that tree... if not, then
>>>just wait until our freedesktop.org tree is ready.
>>>
>>>Harold
>>
>>Harold,
>>
>>The file (startx.cpp) is in xc/programs/xinit, and the xoncygwin tree only
>>has xc/programs/Xserver.  Are you going to use the tree on freedesktop.org
>>(which is already set up at "xorg") for further builds of the non-server
>>parts?  If so, should I use the MAIN branch there, or the XORG-CURRENT
>>branch?
>>        Igor
> 
> 
> Harold,
> 
> Here's a patch against the HEAD of the MAIN branch in the xorg tree at
> freedesktop.org.  ChangeLog is below.  Let me know if there's a problem.
> 	Igor
> ==============================================================================
> ChangeLog:
> 2003-12-02  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
> 	* xc/programs/xinit/startx.cpp: Make space-friendly.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --- xc/programs/xinit/startx.cpp-orig	2003-12-02 13:10:12.000000000 -0500
> +++ xc/programs/xinit/startx.cpp	2003-12-02 13:45:06.566899200 -0500
> @@ -48,8 +48,9 @@ fi
>  scoclientrc=$HOME/.startxrc
>  #endif
>  
> -userclientrc=$HOME/.xinitrc
> -userserverrc=$HOME/.xserverrc
> +userclientrc="$HOME/.xinitrc"
> +userserverrc="$HOME/.xserverrc"
> +/* Note: XINITDIR and BINDIR should be space-free */
>  sysclientrc=XINITDIR/xinitrc
>  sysserverrc=XINITDIR/xserverrc
>  defaultclient=BINDIR/xterm
> @@ -64,19 +65,19 @@ if [ -f $scoclientrc ]; then
>      defaultclientargs=$scoclientrc
>  else
>  #endif
> -if [ -f $userclientrc ]; then
> -    defaultclientargs=$userclientrc
> -elif [ -f $sysclientrc ]; then
> -    defaultclientargs=$sysclientrc
> +if [ -f "$userclientrc" ]; then
> +    defaultclientargs="\"$userclientrc\""
> +elif [ -f "$sysclientrc" ]; then
> +    defaultclientargs="\"$sysclientrc\""
>  fi
>  #ifdef SCO
>  fi
>  #endif
>  
> -if [ -f $userserverrc ]; then
> -    defaultserverargs=$userserverrc
> -elif [ -f $sysserverrc ]; then
> -    defaultserverargs=$sysserverrc
> +if [ -f "$userserverrc" ]; then
> +    defaultserverargs="\"$userserverrc\""
> +elif [ -f "$sysserverrc" ]; then
> +    defaultserverargs="\"$sysserverrc\""
>  fi
>  
>  whoseargs="client"
> @@ -86,15 +87,15 @@ while [ x"$1" != x ]; do
>      /''*|\./''*)
>  	if [ "$whoseargs" = "client" ]; then
>  	    if [ x"$clientargs" = x ]; then
> -		client="$1"
> +		client="\"$1\""
>  	    else
> -		clientargs="$clientargs $1"
> +		clientargs="$clientargs \"$1\""
>  	    fi
>  	else
>  	    if [ x"$serverargs" = x ]; then
> -		server="$1"
> +		server="\"$1\""
>  	    else
> -		serverargs="$serverargs $1"
> +		serverargs="$serverargs \"$1\""
>  	    fi
>  	fi
>  	;;
> @@ -103,14 +104,14 @@ while [ x"$1" != x ]; do
>  	;;
>      *)
>  	if [ "$whoseargs" = "client" ]; then
> -	    clientargs="$clientargs $1"
> +	    clientargs="$clientargs \"$1\""
>  	else
>  	    XCOMM display must be the FIRST server argument
>  	    if [ x"$serverargs" = x ] && @@
>  		 expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then
> -		display="$1"
> +		display="\"$1\""
>  	    else
> -		serverargs="$serverargs $1"
> +		serverargs="$serverargs \"$1\""
>  	    fi
>  	fi
>  	;;
> @@ -124,7 +125,7 @@ if [ x"$client" = x ]; then
>      if [ x"$clientargs" = x ]; then
>  	client="$defaultclientargs"
>      else
> -	client=$defaultclient
> +	client="$defaultclient"
>      fi
>  fi
>  
> @@ -134,12 +135,12 @@ if [ x"$server" = x ]; then
>      if [ x"$serverargs" = x -a x"$display" = x ]; then
>  	server="$defaultserverargs"
>      else
> -	server=$defaultserver
> +	server="$defaultserver"
>      fi
>  fi
>  
>  if [ x"$XAUTHORITY" = x ]; then
> -    XAUTHORITY=$HOME/.Xauthority
> +    XAUTHORITY="$HOME/.Xauthority"
>      export XAUTHORITY
>  fi
>  
> @@ -172,9 +173,13 @@ EOF
>  done
>  #endif
>  
> -xinit $client $clientargs -- $server $display $serverargs
> +XCOMM correctly process quotes, etc
> +eval "set -- $client $clientargs -- $server $display $serverargs"
> +
> +xinit "$@"
>  
>  if [ x"$removelist" != x ]; then
> +    XCOMM Note: this is still not space-friendly!
>      xauth remove $removelist
>  fi
>  


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-24  8:10       ` Hans Dekker
@ 2003-11-24 16:13         ` Igor Pechtchanski
  0 siblings, 0 replies; 22+ messages in thread
From: Igor Pechtchanski @ 2003-11-24 16:13 UTC (permalink / raw)
  To: cygwin-xfree, hans.dekker.ext

On Mon, 24 Nov 2003, Hans Dekker wrote:

> Hi,
>
> Don't know if I am answering to the right question/ problem, but I see
> some referrals to passwd, username etc. To get to login to a Unix box
> with X you can use the following script, after starting X and getting
> into the xterm box of your local machine:
>
>  > xhost +<host> > /dev/null
>  > export IPADDR=`ipconfig | grep Address | grep "10\." | cut -f 2 -d ":" | cut -f 2 -d " "`
>  > rsh <host> -l ${USERNAME} "export DISPLAY=\"${IPADDR}:0.0\";cd $HOME; xterm"

Make that "${USERNAME}" (the username may contain spaces too).  However,
why bother, if you can make "$USER" be without spaces in /etc/passwd?
	Igor

> Use a modified startxwin.bat like:
>
>  > start XWin -multiwindow
>  > xterm -T "your app initialisation screen" -e <startscript above>
>
>
> Note that the bash shell copies the MS-Windows environment to it as you
> start it. That's the referral to ${USERNAME}. We have the same usernames
> for the MS-Windows environment as well as the Unix box logging in to.
> You can fill out your username on the remote Unix box as needed.
>
> The string Address is what grep looks for in the output of ipconfig.
> Maybe different in your locale. Check ipconfig output in your bash box.
>
> 10\. is part of our IP-address range in the Unix/ Windows network. It's
> useful to scan your IP adresses when you have more than 1 NIC or more
> than 1 IP-address.
>
> In case you have a $HOME on the remote machine with spaces in it try cd
> \"${HOME}\" in the script.
>
> Regards, Hans.
>
> Igor Pechtchanski escribio:
> > Robert,
> >
> > Sorry, but no.  Cygwin doesn't care about the Windows username, it looks
> > in /etc/passwd.  If you change the name of the Windows account, you'd have
> > to regenerate the appropriate entry in /etc/passwd anyway, so why not just
> > eliminate the middle step and change /etc/passwd directly?  Simply remove
> > the spaces from the username and the home directory in /etc/passwd (and
> > make sure you rename the directory itself), and it should be fine.
> >       Igor
> >
> > On Fri, 21 Nov 2003, Robert McNulty Junior wrote:
> >
> >
> >>I think these names with spaces come from when they originally set up
> >>Windows NT, 2000, XP, Server 2000 with thier full name when asked create
> >>users in NT, 2000, XP or 2003 Server.
> >>Correct this by going into the Windows Users' account setup in Control
> >>Panel, and create a user without the spaces in the name.
> >>Chan, use chansengloong as your new user name. Must be done in administrater
> >>mode.
> >>Over all effect will be a new account under Cygwin though windows.
> >>
> >>
> >>-----Original Message-----
> >>From: cygwin-xfree-owner@cygwin.com
> >>[mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Andrew Markebo
> >>Sent: Friday, November 21, 2003 10:35 PM
> >>To: cygwin-xfree@cygwin.com
> >>Subject: Re: Cygwin XFree86 startx Problem
> >>
> >>
> >>/ Chan Seng Loong <johncsl82@yahoo.com> wrote:
> >>|[...]
> >>| $ startx
> >>| + userclientrc=/home/Chan Seng Loong/.xinitrc
> >>| + userserverrc=/home/Chan Seng Loong/.xserverrc
> >>
> >>just a wild thought, homedir with space in it, try without.. edit
> >>/etc/passwd.
> >>
> >>        /A

-- 
				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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-22 23:25     ` Igor Pechtchanski
@ 2003-11-24  8:10       ` Hans Dekker
  2003-11-24 16:13         ` Igor Pechtchanski
  0 siblings, 1 reply; 22+ messages in thread
From: Hans Dekker @ 2003-11-24  8:10 UTC (permalink / raw)
  To: cygwin-xfree

Hi,

Don't know if I am answering to the right question/ problem, but I see 
some referrals to passwd, username etc. To get to login to a Unix box 
with X you can use the following script, after starting X and getting 
into the xterm box of your local machine:

 > xhost +<host> > /dev/null
 > export IPADDR=`ipconfig | grep Address | grep "10\." | cut -f 2 -d 
":" | cut -f 2 -d " "`
 > rsh <host> -l ${USERNAME} "export DISPLAY=\"${IPADDR}:0.0\";cd $HOME; 
xterm"

Use a modified startxwin.bat like:

 > start XWin -multiwindow
 > xterm -T "your app initialisation screen" -e <startscript above>


Note that the bash shell copies the MS-Windows environment to it as you 
start it. That's the referral to ${USERNAME}. We have the same usernames 
for the MS-Windows environment as well as the Unix box logging in to. 
You can fill out your username on the remote Unix box as needed.

The string Address is what grep looks for in the output of ipconfig. 
Maybe different in your locale. Check ipconfig output in your bash box.

10\. is part of our IP-address range in the Unix/ Windows network. It's 
useful to scan your IP adresses when you have more than 1 NIC or more 
than 1 IP-address.

In case you have a $HOME on the remote machine with spaces in it try cd 
\"${HOME}\" in the script.

Regards, Hans.

Igor Pechtchanski escribió:
> Robert,
> 
> Sorry, but no.  Cygwin doesn't care about the Windows username, it looks
> in /etc/passwd.  If you change the name of the Windows account, you'd have
> to regenerate the appropriate entry in /etc/passwd anyway, so why not just
> eliminate the middle step and change /etc/passwd directly?  Simply remove
> the spaces from the username and the home directory in /etc/passwd (and
> make sure you rename the directory itself), and it should be fine.
> 	Igor
> 
> On Fri, 21 Nov 2003, Robert McNulty Junior wrote:
> 
> 
>>I think these names with spaces come from when they originally set up
>>Windows NT, 2000, XP, Server 2000 with thier full name when asked create
>>users in NT, 2000, XP or 2003 Server.
>>Correct this by going into the Windows Users' account setup in Control
>>Panel, and create a user without the spaces in the name.
>>Chan, use chansengloong as your new user name. Must be done in administrater
>>mode.
>>Over all effect will be a new account under Cygwin though windows.
>>
>>
>>-----Original Message-----
>>From: cygwin-xfree-owner@cygwin.com
>>[mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Andrew Markebo
>>Sent: Friday, November 21, 2003 10:35 PM
>>To: cygwin-xfree@cygwin.com
>>Subject: Re: Cygwin XFree86 startx Problem
>>
>>
>>/ Chan Seng Loong <johncsl82@yahoo.com> wrote:
>>|[...]
>>| $ startx
>>| + userclientrc=/home/Chan Seng Loong/.xinitrc
>>| + userserverrc=/home/Chan Seng Loong/.xserverrc
>>
>>just a wild thought, homedir with space in it, try without.. edit
>>/etc/passwd.
>>
>>        /A
>>
>>--
>>   Democracy is two hungry wolves and one sheep discussing what's for
>>dinner. Liberty is a well-armed sheep willing to contest the decision.
>>
>>
>>
> 
> 



^ permalink raw reply	[flat|nested] 22+ messages in thread

* RE: Cygwin XFree86 startx Problem
  2003-11-22  4:53   ` Robert McNulty Junior
@ 2003-11-22 23:25     ` Igor Pechtchanski
  2003-11-24  8:10       ` Hans Dekker
  0 siblings, 1 reply; 22+ messages in thread
From: Igor Pechtchanski @ 2003-11-22 23:25 UTC (permalink / raw)
  To: cygwin-xfree

Robert,

Sorry, but no.  Cygwin doesn't care about the Windows username, it looks
in /etc/passwd.  If you change the name of the Windows account, you'd have
to regenerate the appropriate entry in /etc/passwd anyway, so why not just
eliminate the middle step and change /etc/passwd directly?  Simply remove
the spaces from the username and the home directory in /etc/passwd (and
make sure you rename the directory itself), and it should be fine.
	Igor

On Fri, 21 Nov 2003, Robert McNulty Junior wrote:

> I think these names with spaces come from when they originally set up
> Windows NT, 2000, XP, Server 2000 with thier full name when asked create
> users in NT, 2000, XP or 2003 Server.
> Correct this by going into the Windows Users' account setup in Control
> Panel, and create a user without the spaces in the name.
> Chan, use chansengloong as your new user name. Must be done in administrater
> mode.
> Over all effect will be a new account under Cygwin though windows.
>
>
> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com
> [mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Andrew Markebo
> Sent: Friday, November 21, 2003 10:35 PM
> To: cygwin-xfree@cygwin.com
> Subject: Re: Cygwin XFree86 startx Problem
>
>
> / Chan Seng Loong <johncsl82@yahoo.com> wrote:
> |[...]
> | $ startx
> | + userclientrc=/home/Chan Seng Loong/.xinitrc
> | + userserverrc=/home/Chan Seng Loong/.xserverrc
>
> just a wild thought, homedir with space in it, try without.. edit
> /etc/passwd.
>
>         /A
>
> --
>    Democracy is two hungry wolves and one sheep discussing what's for
> dinner. Liberty is a well-armed sheep willing to contest the decision.
>
>
>

-- 
				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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* RE: Cygwin XFree86 startx Problem
  2003-11-22  4:40 ` Andrew Markebo
@ 2003-11-22  4:53   ` Robert McNulty Junior
  2003-11-22 23:25     ` Igor Pechtchanski
  0 siblings, 1 reply; 22+ messages in thread
From: Robert McNulty Junior @ 2003-11-22  4:53 UTC (permalink / raw)
  To: cygwin-xfree

I think these names with spaces come from when they originally set up
Windows NT, 2000, XP, Server 2000 with thier full name when asked create
users in NT, 2000, XP or 2003 Server.
Correct this by going into the Windows Users' account setup in Control
Panel, and create a user without the spaces in the name.
Chan, use chansengloong as your new user name. Must be done in administrater
mode.
Over all effect will be a new account under Cygwin though windows.


-----Original Message-----
From: cygwin-xfree-owner@cygwin.com
[mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Andrew Markebo
Sent: Friday, November 21, 2003 10:35 PM
To: cygwin-xfree@cygwin.com
Subject: Re: Cygwin XFree86 startx Problem


/ Chan Seng Loong <johncsl82@yahoo.com> wrote:
|[...]
| $ startx
| + userclientrc=/home/Chan Seng Loong/.xinitrc
| + userserverrc=/home/Chan Seng Loong/.xserverrc

just a wild thought, homedir with space in it, try without.. edit
/etc/passwd.

        /A

--
   Democracy is two hungry wolves and one sheep discussing what's for
dinner. Liberty is a well-armed sheep willing to contest the decision.




^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-22  2:02 Chan Seng Loong
  2003-11-22  3:04 ` David Andersen
@ 2003-11-22  4:40 ` Andrew Markebo
  2003-11-22  4:53   ` Robert McNulty Junior
  1 sibling, 1 reply; 22+ messages in thread
From: Andrew Markebo @ 2003-11-22  4:40 UTC (permalink / raw)
  To: cygwin-xfree

/ Chan Seng Loong <johncsl82@yahoo.com> wrote:
|[...]
| $ startx
| + userclientrc=/home/Chan Seng Loong/.xinitrc
| + userserverrc=/home/Chan Seng Loong/.xserverrc

just a wild thought, homedir with space in it, try without.. edit
/etc/passwd.

        /A

-- 
   Democracy is two hungry wolves and one sheep discussing what's for
dinner. Liberty is a well-armed sheep willing to contest the decision.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-22  2:02 Chan Seng Loong
@ 2003-11-22  3:04 ` David Andersen
  2003-11-22  4:40 ` Andrew Markebo
  1 sibling, 0 replies; 22+ messages in thread
From: David Andersen @ 2003-11-22  3:04 UTC (permalink / raw)
  To: cygwin-xfree

One of the messages may be from xclock - I also get the *Warning: Cannot
convert string "" to type XftFont* message everytime I load xclock (from
.xinitrc or from an xterm).   It doesn't seem to hurt anything, but it would
be nice to know what causes it.

----- Original Message ----- 
From: "Chan Seng Loong" <johncsl82@yahoo.com>
Newsgroups: gmane.os.cygwin.xfree
Sent: Friday, November 21, 2003 8:02 PM
Subject: Re: Cygwin XFree86 startx Problem
...
> + xclock -geometry 50x50-1+1
...
> Fontconfig error: Cannot load default config file
> Warning: Cannot convert string "" to type XftFont


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
@ 2003-11-22  2:02 Chan Seng Loong
  2003-11-22  3:04 ` David Andersen
  2003-11-22  4:40 ` Andrew Markebo
  0 siblings, 2 replies; 22+ messages in thread
From: Chan Seng Loong @ 2003-11-22  2:02 UTC (permalink / raw)
  To: cygwin-xfree

hi....again

I check the setup.exe and it say that I already
installed:

libconfig-devel
libfontconfig1
libfreetype2-devel
libfreetype26

packages.......

still I got the fontconfig problem:

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 ]
+ defaultclientargs="/home/Chan Seng Loong/.xinitrc"
+ [ -f /home/Chan Seng Loong/.xserverrc ]
+ [ -f /usr/X11R6/lib/X11/xinit/xserverrc ]
+ whoseargs=client
+ [ x != x ]
+ [ x = x ]
+ [ x = x ]
+ client="/home/Chan Seng Loong/.xinitrc"
+ [ x = x ]
+ [ x = x -a x = x ]
+ server=
+ [ x = x ]
+ XAUTHORITY=/home/Chan Seng Loong/.Xauthority
+ export XAUTHORITY
+ removelist=
+ eval set -- "/home/Chan Seng Loong/.xinitrc"  --
+ set -- /home/Chan Seng Loong/.xinitrc --
+ xinit /home/Chan Seng Loong/.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 ]
+ [ -f /home/Chan Seng Loong/.Xmodmap ]
+ 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

Well, i check the /etc/x11/fs/config:

# font server configuration file
# $Xorg: config.cpp,v 1.3 2000/08/17 19:54:19 cpqbld
Exp $

clone-self = on
use-syslog = off
catalogue =
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
error-file = /var/log/xfs.log
# in decipoints
default-point-size = 120
default-resolutions = 75,75,100,100

# font cache control, specified in KB
cache-hi-mark = 2048
cache-low-mark = 1433
cache-balance = 70




__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-20 17:54 Chan Seng Loong
@ 2003-11-20 17:57 ` Harold L Hunt II
  0 siblings, 0 replies; 22+ messages in thread
From: Harold L Hunt II @ 2003-11-20 17:57 UTC (permalink / raw)
  To: cygwin-xfree

They are in the XFree86 category.  Should be sorted towards the top of 
the list.  You are doing an "Install from Internet", right?

Harold

Chan Seng Loong wrote:

> hi... again
> 
> I tried using the "$HOME" -> qutoes....but failed
> 
> where can i get the fontconfig and freetype2
> packages.. which category there in....
> can't find them in the cygwin setup...
> 
> 
> Thanks
> 
> John
> 
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
@ 2003-11-20 17:54 Chan Seng Loong
  2003-11-20 17:57 ` Harold L Hunt II
  0 siblings, 1 reply; 22+ messages in thread
From: Chan Seng Loong @ 2003-11-20 17:54 UTC (permalink / raw)
  To: cygwin-xfree

hi... again

I tried using the "$HOME" -> qutoes....but failed

where can i get the fontconfig and freetype2
packages.. which category there in....
can't find them in the cygwin setup...


Thanks

John


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-20 15:07 Chan Seng Loong
  2003-11-20 15:24 ` Harold L Hunt II
@ 2003-11-20 17:30 ` Igor Pechtchanski
  1 sibling, 0 replies; 22+ messages in thread
From: Igor Pechtchanski @ 2003-11-20 17:30 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3353 bytes --]

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

[-- Attachment #2: Type: TEXT/PLAIN, Size: 3157 bytes --]

--- startx-orig	2003-10-28 12:10:43.000000000 -0500
+++ startx	2003-11-20 12:11:31.068496000 -0500
@@ -14,8 +14,8 @@
 # $XFree86: xc/programs/xinit/startx.cpp,v 3.16 2003/01/24 21:30:02 herrb Exp $
 
 
-userclientrc=$HOME/.xinitrc
-userserverrc=$HOME/.xserverrc
+userclientrc="$HOME/.xinitrc"
+userserverrc="$HOME/.xserverrc"
 sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
 sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
 defaultclient=/usr/X11R6/bin/xterm
@@ -30,19 +30,16 @@ serverargs=""
 
 
 
-if [ -f $userclientrc ]; then
-    defaultclientargs=$userclientrc
-elif [ -f $sysclientrc ]; then
-    defaultclientargs=$sysclientrc
+if [ -f "$userclientrc" ]; then
+    defaultclientargs="\"$userclientrc\""
+elif [ -f "$sysclientrc" ]; then
+    defaultclientargs="\"$sysclientrc\""
 fi
 
-
-
-
-if [ -f $userserverrc ]; then
-    defaultserverargs=$userserverrc
-elif [ -f $sysserverrc ]; then
-    defaultserverargs=$sysserverrc
+if [ -f "$userserverrc" ]; then
+    defaultserverargs="\"$userserverrc\""
+elif [ -f "$sysserverrc" ]; then
+    defaultserverargs="\"$sysserverrc\""
 fi
 
 whoseargs="client"
@@ -52,15 +49,15 @@ while [ x"$1" != x ]; do
     /''*|\./''*)
 	if [ "$whoseargs" = "client" ]; then
 	    if [ x"$clientargs" = x ]; then
-		client="$1"
+		client="\"$1\""
 	    else
-		clientargs="$clientargs $1"
+		clientargs="$clientargs \"$1\""
 	    fi
 	else
 	    if [ x"$serverargs" = x ]; then
-		server="$1"
+		server="\"$1\""
 	    else
-		serverargs="$serverargs $1"
+		serverargs="$serverargs \"$1\""
 	    fi
 	fi
 	;;
@@ -69,14 +66,15 @@ while [ x"$1" != x ]; do
 	;;
     *)
 	if [ "$whoseargs" = "client" ]; then
-	    clientargs="$clientargs $1"
+	    clientargs="$clientargs \"$1\""
 	else
 	    # display must be the FIRST server argument
-	    if [ x"$serverargs" = x ] && 		 expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then
+	    if [ x"$serverargs" = x ] && \
+		 expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then
 
-		display="$1"
+		display="\"$1\""
 	    else
-		serverargs="$serverargs $1"
+		serverargs="$serverargs \"$1\""
 	    fi
 	fi
 	;;
@@ -90,7 +88,7 @@ if [ x"$client" = x ]; then
     if [ x"$clientargs" = x ]; then
 	client="$defaultclientargs"
     else
-	client=$defaultclient
+	client="$defaultclient"
     fi
 fi
 
@@ -100,39 +98,26 @@ if [ x"$server" = x ]; then
     if [ x"$serverargs" = x -a x"$display" = x ]; then
 	server="$defaultserverargs"
     else
-	server=$defaultserver
+	server="$defaultserver"
     fi
 fi
 
 if [ x"$XAUTHORITY" = x ]; then
-    XAUTHORITY=$HOME/.Xauthority
+    XAUTHORITY="$HOME/.Xauthority"
     export XAUTHORITY
 fi
 
 removelist=
 
+#xinit $client $clientargs -- $server $display $serverargs
 
-xinit $client $clientargs -- $server $display $serverargs
+# correctly process quotes, etc
+eval "set -- $client $clientargs -- $server $display $serverargs"
+
+xinit "$@"
 
 if [ x"$removelist" != x ]; then
+    # Note: this is still not space-friendly!
     xauth remove $removelist
 fi
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-20 15:26 Henrik Schultz
@ 2003-11-20 15:33 ` Harold L Hunt II
  0 siblings, 0 replies; 22+ messages in thread
From: Harold L Hunt II @ 2003-11-20 15:33 UTC (permalink / raw)
  To: cygwin-xfree

Henrik,

Henrik Schultz wrote:

>>With that being said, looks like you are missing the fontconfig and 
>>freetype2 packages.
> 
> 
> No, they just need to enclose long file names with spaces in quotes ...

Not so sure about that.  That may fix some of the problems, but what 
about the last problem in the list:

Fontconfig error: Cannot load default config file
Warning: Cannot convert string "" to type XftFont


Harold


^ permalink raw reply	[flat|nested] 22+ messages in thread

* RE: Cygwin XFree86 startx Problem
@ 2003-11-20 15:26 Henrik Schultz
  2003-11-20 15:33 ` Harold L Hunt II
  0 siblings, 1 reply; 22+ messages in thread
From: Henrik Schultz @ 2003-11-20 15:26 UTC (permalink / raw)
  To: 'cygwin-xfree@cygwin.com'

>With that being said, looks like you are missing the fontconfig and 
>freetype2 packages.

No, they just need to enclose long file names with spaces in quotes ...

- Henrik


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Cygwin XFree86 startx Problem
  2003-11-20 15:07 Chan Seng Loong
@ 2003-11-20 15:24 ` Harold L Hunt II
  2003-11-20 17:30 ` Igor Pechtchanski
  1 sibling, 0 replies; 22+ messages in thread
From: Harold L Hunt II @ 2003-11-20 15:24 UTC (permalink / raw)
  To: cygwin-xfree

John,

I recommend using startxwin.bat.  I don't recommend using startx.

With that being said, looks like you are missing the fontconfig and 
freetype2 packages.

Harold

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.....
> d
> Can someone help me to solve the problem......?
> 
> Thanks
> 
> John
> 
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Cygwin XFree86 startx Problem
@ 2003-11-20 15:07 Chan Seng Loong
  2003-11-20 15:24 ` Harold L Hunt II
  2003-11-20 17:30 ` Igor Pechtchanski
  0 siblings, 2 replies; 22+ messages in thread
From: Chan Seng Loong @ 2003-11-20 15:07 UTC (permalink / raw)
  To: cygwin-xfree

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


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2003-12-03  1:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-21 19:20 Cygwin XFree86 startx Problem Chan Seng Loong
2003-11-21 19:52 ` Igor Pechtchanski
2003-11-21 20:04   ` Harold L Hunt II
2003-11-22 14:25     ` Igor Pechtchanski
2003-11-22 18:36       ` Harold L Hunt II
2003-11-29 18:57         ` Igor Pechtchanski
2003-12-02 20:44           ` Igor Pechtchanski
2003-12-03  1:38             ` Harold L Hunt II
  -- strict thread matches above, loose matches on Subject: below --
2003-11-22  2:02 Chan Seng Loong
2003-11-22  3:04 ` David Andersen
2003-11-22  4:40 ` Andrew Markebo
2003-11-22  4:53   ` Robert McNulty Junior
2003-11-22 23:25     ` Igor Pechtchanski
2003-11-24  8:10       ` Hans Dekker
2003-11-24 16:13         ` Igor Pechtchanski
2003-11-20 17:54 Chan Seng Loong
2003-11-20 17:57 ` Harold L Hunt II
2003-11-20 15:26 Henrik Schultz
2003-11-20 15:33 ` Harold L Hunt II
2003-11-20 15:07 Chan Seng Loong
2003-11-20 15:24 ` Harold L Hunt II
2003-11-20 17:30 ` Igor Pechtchanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).