This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: startxwin.bat
- To: "'cygwin-xfree at xfree dot cygwin dot com'" <cygwin-xfree at xfree dot cygwin dot com>
- Subject: RE: startxwin.bat
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Wed, 22 Aug 2001 16:29:09 -0400
You can't do that...
if cygwin1.dll and bash is in your path, you type
sh startxwin.bat to execte it
or download startup-scripts.tgz rom same site you downloaded other archives.
It contains all the batch files.
Did you follow and read instructions in User's Guide?
Suhaib
> -----Original Message-----
> From: Eskild Busch [mailto:eskildb@ifi.uio.no]
> Sent: Wednesday, August 22, 2001 4:21 PM
> To: cygwin-xfree@xfree.cygwin.com
> Subject: startxwin.bat
>
>
> Hi!
>
> I Have a problem to get my cygwin/XFree to work. When I
> follow the manual I hav some problems.
>
> 1. To start the Cygwin/XFree it says to
> Run /usr/X11R6/bin/startxwin.bat by double-clicking it in
> Windows Explorer.
>
> I did'nt have a file whit this name, but a file named startx.
> I did rename this one to startxwin.bat and run it, but this
> did'nt work.
>
> When it comes to the line
> then
> defaultclientargs=$userclientrc
> else if
> the output form dos is bad command or filename
>
> 2. When I try to rn starx from the bash promt I get:
> $startx
> BASH: starx: commando not found
>
> Do you have any idea whats wrong?
>
> thanks
> Eskild Busch
>
> PS. Here is the startx file I changed to startxwin.bat
> {\rtf1\ansi\ansicpg1200\deff0\deflang1044{\fonttbl
> {\f0\fnil\fcharset0 Times New Roman;}}
> \uc1\pard\ulnone\f0\fs20 #!/bin/sh
>
> # $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $
> #
> # This is just a sample implementation of a slightly less
> primitive # interface than xinit. It looks for user .xinitrc
> and .xserverrc # files, then system xinitrc and xserverrc
> files, else lets xinit choose # its default. The system
> xinitrc should probably do things like check # for
> .Xresources files and merge them in, startup up a window
> manager, # and pop a clock and serveral xterms. # # Site
> administrators are STRONGLY urged to write nicer versions. #
> # $XFree86: xc/programs/xinit/startx.cpp,v 3.8 2001/04/27
> 11:04:53 dawes Exp $ userclientrc=$HOME/.xinitrc
> userserverrc=$HOME/.xserverrc
> sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
> sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
> defaultclientargs=""
> defaultserverargs=""
> clientargs=""
> serverargs=""
> if [ -f $userclientrc ]; then
> defaultclientargs=$userclientrc
> else if [ -f $sysclientrc ]; then
> defaultclientargs=$sysclientrc
> fi
> fi
> if [ -f $userserverrc ]; then
> defaultserverargs=$userserverrc
> else if [ -f $sysserverrc ]; then
> defaultserverargs=$sysserverrc
> fi
> fi
> display=:0
> whoseargs="client"
> while [ "x$1" != "x" ]; do
> case "$1" in
> --)
> whoseargs="server"
> ;;
> *)
> if [ "$whoseargs" = "client" ]; then
> clientargs="$clientargs $1"
> else
> serverargs="$serverargs $1"
> case "$1" in
> :[0-9]*)
> display="$1"
> ;;
> esac
> fi
> ;;
> esac
> shift
> done
> if [ x"$clientargs" = x ]; then
> clientargs="$defaultclientargs"
> fi
> if [ x"$serverargs" = x ]; then
> serverargs="$defaultserverargs"
> fi
>
> if [ X"$XAUTHORITY" = X ]; then
> export XAUTHORITY=$HOME/.Xauthority
> fi
> removelist=
> xinit $clientargs -- $serverargs
> if [ x"$removelist" != x ]; then
> xauth remove $removelist
> fi
> }
>
>
>
>