[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xinit: Changes to 'upstream-unstable'



 .gitignore                                            |    1 
 Makefile.am                                           |   31 -
 README                                                |   26 +
 configure.ac                                          |   44 +
 cpprules.in                                           |   22 
 launchd/Makefile.am                                   |    3 
 launchd/console_redirect.c                            |  418 ++++++++++++++++++
 launchd/console_redirect.h                            |   44 +
 launchd/privileged_startx/.gitignore                  |    9 
 launchd/privileged_startx/10-tmpdirs.cpp              |   46 +
 launchd/privileged_startx/20-font_cache.cpp           |   35 +
 launchd/privileged_startx/Makefile.am                 |   82 +++
 launchd/privileged_startx/client.c                    |   66 ++
 launchd/privileged_startx/privileged_startx.c         |   63 ++
 launchd/privileged_startx/privileged_startx.defs      |   40 +
 launchd/privileged_startx/privileged_startx.plist.cpp |   28 +
 launchd/privileged_startx/privileged_startx_types.h   |   10 
 launchd/privileged_startx/server.c                    |  320 +++++++++++++
 launchd/user_startx/.gitignore                        |    2 
 launchd/user_startx/Makefile.am                       |   49 ++
 launchd/user_startx/launchd_startx.c                  |   64 ++
 launchd/user_startx/startx.plist.cpp                  |   25 +
 man/Makefile.am                                       |   20 
 man/startx.man                                        |  224 +++++++++
 man/xinit.man                                         |  199 ++++++++
 org.x.startx.plist.cpp                                |   24 -
 privileged_startx/.gitignore                          |    9 
 privileged_startx/10-tmpdirs.cpp                      |   37 -
 privileged_startx/20-font_cache.cpp                   |   35 -
 privileged_startx/Makefile.am                         |   80 ---
 privileged_startx/client.c                            |   62 --
 privileged_startx/org.x.privileged_startx.plist.cpp   |   28 -
 privileged_startx/privileged_startx.c                 |   59 --
 privileged_startx/privileged_startx.defs              |   40 -
 privileged_startx/privileged_startx_types.h           |   10 
 privileged_startx/server.c                            |  306 -------------
 startx.cpp                                            |    8 
 startx.man                                            |  223 ---------
 xinit.c                                               |    5 
 xinit.man                                             |  199 --------
 40 files changed, 1812 insertions(+), 1184 deletions(-)

New commits:
commit 6543a881708a2a410b51bb5644d9123c847a2908
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Sun Jul 24 17:15:10 2011 -0700

    configure.ac: Bump version to 1.3.1
    
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>

diff --git a/configure.ac b/configure.ac
index 9aa2f2e..4e808ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,7 @@ dnl Process this file with autoconf to create configure.
 
 # Initialize Autoconf
 AC_PREREQ([2.60])
-AC_INIT([xinit], [1.3.0],
+AC_INIT([xinit], [1.3.1],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xinit])
 AC_CONFIG_SRCDIR([Makefile.am])
 AC_CONFIG_HEADERS([config.h])

commit b0b9c21b752faab43241665f8fd12e10973e739c
Author: Gaetan Nadon <memsize@videotron.ca>
Date:   Fri Jun 17 13:49:11 2011 -0400

    DIST_SUBDIRS is not required when using AM_CONDITIONALs
    
    LAUNCHD is an Automake conditional which means that Automake will
    traverse the launchd directory when running the dist target.
    http://www.gnu.org/software/automake/manual/automake.html
    
    One less variables to maintain.
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

diff --git a/Makefile.am b/Makefile.am
index c179fa9..3867bea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,6 +19,11 @@
 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 #  PERFORMANCE OF THIS SOFTWARE.
 
+SUBDIRS = man
+if LAUNCHD
+SUBDIRS += launchd
+endif
+
 bin_PROGRAMS = xinit
 bin_SCRIPTS = startx
 
@@ -50,13 +55,6 @@ CPP_FILES_FLAGS = \
 	-D__bindir__="$(bindir)" \
 	-DBUNDLE_ID_PREFIX="$(bundleidprefix)"
 
-SUBDIRS = man
-if LAUNCHD
-SUBDIRS += launchd
-endif
-
-DIST_SUBDIRS = launchd man
-
 xinitrc_DATA = xinitrc
 
 MAINTAINERCLEANFILES = ChangeLog INSTALL

commit 120a58116f2e3a223dbb78e0b33d3755eeb8ad5a
Author: Gaetan Nadon <memsize@videotron.ca>
Date:   Fri Jun 17 13:39:27 2011 -0400

    Move man pages in the man directory
    
    Now that the cpp tool is no longer needed, normalize the man pages build.
    
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

diff --git a/Makefile.am b/Makefile.am
index 6c4ef24..c179fa9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,25 +29,8 @@ xinit_LDADD = $(XINIT_LIBS)
 xinit_SOURCES =	\
         xinit.c
 
-appmandir = $(APP_MAN_DIR)
-appman_PRE = startx.man  xinit.man
-appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
-
-# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
-MAN_SUBSTS+=	-e 's|__XSERVERNAME__|$(XSERVERNAME)|g' \
-		-e 's|__XCONFIGFILE__|$(XCONFIGFILE)|g' \
-		-e 's|__XCONFIGFILEMAN__|$(XCONFIGFILEMAN)|g' \
-		-e 's|__xinitdir__|$(XINITDIR)|g' \
-		-e 's|__bindir__|$(bindir)|g' \
-		-e 's|__libdir__|$(libdir)|g' \
-		-e 's|__SCOMAN__|$(SCOMAN)|g'
-
 include $(top_srcdir)/cpprules.in
 
-SUFFIXES += .$(APP_MAN_SUFFIX) .man
-.man.$(APP_MAN_SUFFIX):
-	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
-
 xinitrcdir = $(XINITDIR)
 
 PROGCPPDEFS = \
@@ -67,18 +50,19 @@ CPP_FILES_FLAGS = \
 	-D__bindir__="$(bindir)" \
 	-DBUNDLE_ID_PREFIX="$(bundleidprefix)"
 
+SUBDIRS = man
 if LAUNCHD
-SUBDIRS = launchd
+SUBDIRS += launchd
 endif
 
-DIST_SUBDIRS = launchd
+DIST_SUBDIRS = launchd man
 
 xinitrc_DATA = xinitrc
 
 MAINTAINERCLEANFILES = ChangeLog INSTALL
-CLEANFILES = xinitrc startx $(appman_DATA) $(launchagents_DATA)
+CLEANFILES = xinitrc startx $(launchagents_DATA)
 
-EXTRA_DIST = xinitrc.cpp startx.cpp $(appman_PRE)	\
+EXTRA_DIST = xinitrc.cpp startx.cpp \
 		autogen.sh
 
 .PHONY: ChangeLog INSTALL
diff --git a/configure.ac b/configure.ac
index dbd17de..9aa2f2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -204,8 +204,9 @@ AC_SUBST(XAUTH)
 AC_SUBST(XINIT)
 AC_SUBST(XINITDIR)
 
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([launchd/Makefile])
-AC_CONFIG_FILES([launchd/privileged_startx/Makefile])
-AC_CONFIG_FILES([launchd/user_startx/Makefile])
+AC_CONFIG_FILES([Makefile
+	man/Makefile
+	launchd/Makefile
+	launchd/privileged_startx/Makefile
+	launchd/user_startx/Makefile])
 AC_OUTPUT
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644
index 0000000..074bc36
--- /dev/null
+++ b/man/Makefile.am
@@ -0,0 +1,20 @@
+
+appmandir = $(APP_MAN_DIR)
+appman_PRE = startx.man  xinit.man
+appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
+
+EXTRA_DIST = $(appman_PRE)
+CLEANFILES = $(appman_DATA)
+SUFFIXES = .$(APP_MAN_SUFFIX) .man
+
+MAN_SUBSTS+=	-e 's|__XSERVERNAME__|$(XSERVERNAME)|g' \
+		-e 's|__XCONFIGFILE__|$(XCONFIGFILE)|g' \
+		-e 's|__XCONFIGFILEMAN__|$(XCONFIGFILEMAN)|g' \
+		-e 's|__xinitdir__|$(XINITDIR)|g' \
+		-e 's|__bindir__|$(bindir)|g' \
+		-e 's|__libdir__|$(libdir)|g' \
+		-e 's|__SCOMAN__|$(SCOMAN)|g'
+
+# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
+.man.$(APP_MAN_SUFFIX):
+	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
diff --git a/man/startx.man b/man/startx.man
new file mode 100644
index 0000000..0405be0
--- /dev/null
+++ b/man/startx.man
@@ -0,0 +1,224 @@
+.\"
+.\" Copyright 1993, 1998  The Open Group
+.\"
+.\" Permission to use, copy, modify, distribute, and sell this software and its
+.\" documentation for any purpose is hereby granted without fee, provided that
+.\" the above copyright notice appear in all copies and that both that
+.\" copyright notice and this permission notice appear in supporting
+.\" documentation.
+.\"
+.\" The above copyright notice and this permission notice shall be included
+.\" in all copies or substantial portions of the Software.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
+.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+.\" OTHER DEALINGS IN THE SOFTWARE.
+.\"
+.\" Except as contained in this notice, the name of The Open Group shall
+.\" not be used in advertising or otherwise to promote the sale, use or
+.\" other dealings in this Software without prior written authorization
+.\" from The Open Group.
+.\"
+.\"
+.TH STARTX __appmansuffix__ __xorgversion__
+.SH NAME
+startx \- initialize an X session
+.SH SYNOPSIS
+.B startx
+[ [
+.I client
+]
+.I options
+\&\.\|.\|. ] [
+.B \-\^\-
+[
+.I server
+] [
+.I display
+]
+.I options
+\&.\|.\|. ]
+.SH DESCRIPTION
+The \fBstartx\fP script is a front end to
+.BR xinit (__appmansuffix__)
+that provides a
+somewhat nicer user interface for running a single session of the X
+Window System.  It is often run with no arguments.
+.PP
+Arguments immediately following the
+.I startx
+command are used to start a client in the same manner as
+.BR xinit (__appmansuffix__).
+The special argument
+.RB '--'
+marks the end of client arguments and the beginning of server options.
+It may be convenient to specify server options with startx to change on a
+per-session basis the
+default color depth, the server's notion of the number of dots-per-inch the
+display device presents, or take advantage of a different server layout, as
+permitted by the
+.BR __XSERVERNAME__ (__appmansuffix__)
+server and specified in the
+.BR __XCONFIGFILEMAN__
+configuration.  Some examples of specifying server arguments follow; consult
+the manual page for your X server to determine which arguments are legal.
+.RS
+.PP
+startx -- -depth 16
+.PP
+startx -- -dpi 100
+.PP
+startx -- -layout Multihead
+.RE
+.if '__SCOMAN__'' .ig
+.PP
+To determine the client to run,
+.B startx
+looks for the following files, in order:
+.RS
+.PP
+.I $(HOME)/.startxrc
+.PP
+.I __libdir__/sys.startxrc
+.PP
+.I $(HOME)/.xinitrc
+.PP
+.I __xinitdir__/xinitrc
+.RE
+.PP
+..
+.if !'x.__SCOMAN__'x.' .ig
+.PP
+To determine the client to run,
+.B startx
+first looks for a file called
+.I .xinitrc
+in the user's home directory.  If that is not found, it uses
+the file
+.I xinitrc
+in the
+.I xinit
+library directory.
+..
+If command line client options are given, they override this
+behavior and revert to the
+.BR xinit (__appmansuffix__)
+behavior.
+To determine the server to run,
+.B startx
+first looks for a file called
+.I .xserverrc
+in the user's home directory.  If that is not found, it uses
+the file
+.I xserverrc
+in the
+.I xinit
+library directory.
+If command line server options are given, they override this
+behavior and revert to the
+.BR xinit (__appmansuffix__)
+behavior.  Users rarely need to provide a
+.I .xserverrc
+file.
+See the
+.BR xinit (__appmansuffix__)
+manual page for more details on the arguments.
+.PP
+The system-wide
+.I xinitrc
+and
+.I xserverrc
+files are found in the
+.I __xinitdir__
+directory.
+.PP
+The
+.I .xinitrc
+is typically a shell script which starts many clients according to the
+user's preference.  When this shell script exits,
+.B startx
+kills the server and performs any other session shutdown needed.
+Most of the clients started by
+.I .xinitrc
+should be run in the background.  The last client should run in the
+foreground; when it exits, the session will exit.  People often choose
+a session manager, window manager, or \fIxterm\fP as the ''magic'' client.
+.SH EXAMPLE
+.PP
+Below is a sample \fI\.xinitrc\fP that starts several applications and
+leaves the window manager running as the ''last'' application.  Assuming that
+the window manager has been configured properly, the user
+then chooses the ''Exit'' menu item to shut down X.
+.sp
+.in +4
+.nf
+xrdb \-load $HOME/.Xresources
+xsetroot \-solid gray &
+xbiff \-geometry \-430+5 &
+oclock \-geometry 75x75\-0\-0 &
+xload \-geometry \-80\-0 &
+xterm \-geometry +0+60 \-ls &
+xterm \-geometry +0\-100 &
+xconsole \-geometry \-0+0 \-fn 5x7 &
+exec twm
+.fi
+.in -4
+.SH "ENVIRONMENT VARIABLES"
+.TP 25
+DISPLAY
+This variable gets set to the name of the display to which clients should
+connect.  Note that this gets
+.IR set ,
+not read.
+.TP 25
+XAUTHORITY
+This variable, if not already defined, gets set to
+.IR $(HOME)/.Xauthority .
+This is to prevent the X server, if not given the
+.I \-auth
+argument, from automatically setting up insecure host-based authentication
+for the local host.  See the
+.BR Xserver (__appmansuffix__)
+and
+.IR Xsecurity (__miscmansuffix__)
+manual pages for more information on X client/server authentication.
+.SH FILES
+.if '__SCOMAN__'' .ig
+.TP 25
+.I $(HOME)/.startxrc
+Client to run.  Typically a shell script which runs many programs in
+the background.
+.TP 25
+.I __libdir__/sys.startxrc
+Client to use if the user has no
+.I .startxrc
+file.
+..
+.TP 25
+.I $(HOME)/.xinitrc
+Client to run.  Typically a shell script which runs many programs in
+the background.
+.TP 25
+.I $(HOME)/.xserverrc
+Server to run.  The default is
+.IR X .
+.TP 25
+.I __xinitdir__/xinitrc
+Client to run if the user has no
+.I .xinitrc
+file.
+.TP 25
+.I __xinitdir__/xserverrc
+Server to run if the user has no
+.I .xserverrc
+file.
+.SH "SEE ALSO"
+.BR xinit (__appmansuffix__),
+.BR X (__miscmansuffix__),
+.BR Xserver (__appmansuffix__),
+.BR __XSERVERNAME__ (__appmansuffix__),
+.BR __XCONFIGFILEMAN__
diff --git a/man/xinit.man b/man/xinit.man
new file mode 100644
index 0000000..31b93aa
--- /dev/null
+++ b/man/xinit.man
@@ -0,0 +1,199 @@
+.\"
+.\" Copyright 1988, 1998  The Open Group
+.\"
+.\" Permission to use, copy, modify, distribute, and sell this software and its
+.\" documentation for any purpose is hereby granted without fee, provided that
+.\" the above copyright notice appear in all copies and that both that
+.\" copyright notice and this permission notice appear in supporting
+.\" documentation.
+.\"
+.\" The above copyright notice and this permission notice shall be included
+.\" in all copies or substantial portions of the Software.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
+.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+.\" OTHER DEALINGS IN THE SOFTWARE.
+.\"
+.\" Except as contained in this notice, the name of The Open Group shall
+.\" not be used in advertising or otherwise to promote the sale, use or
+.\" other dealings in this Software without prior written authorization
+.\" from The Open Group.
+.\"
+.TH XINIT __appmansuffix__ __xorgversion__
+.SH NAME
+xinit \- X Window System initializer
+.SH SYNOPSIS
+.B xinit
+[ [
+.I client
+]
+.I options
+\&\.\|.\|. ] [
+.B \-\^\-
+[
+.I server
+] [
+.I display
+]
+.I options
+\&.\|.\|. ]
+.SH DESCRIPTION
+The \fBxinit\fP program is used to start the X Window System server and a first
+client program on systems that are not using a display manager such as
+.BR xdm (__appmansuffix__)
+or in environments
+that use multiple window systems.  When this first client exits,
+\fBxinit\fP will kill the X server and then terminate.
+.PP
+If no specific client program is given on the command line,
+\fBxinit\fP will look for a file in the user's home directory
+called \fI.xinitrc\fP to run as a shell script to start up client programs.
+If no such file exists, \fBxinit\fP will use the following as a default:
+.sp
+	xterm  \-geometry  +1+1  \-n  login  \-display  :0
+.sp
+.PP
+If no specific server program is given on the command line,
+\fBxinit\fP will look for a file in the user's home directory
+called \fI.xserverrc\fP to run as a shell script to start up the server.
+If no such file exists, \fIxinit\fP will use the following as a default:
+.sp
+	X  :0
+.sp
+Note that this assumes that there is a program named \fIX\fP in the current
+search path.  The site administrator should, therefore, make a link to the
+appropriate type of server on the machine, or create a shell script that
+runs \fBxinit\fP with the appropriate server.
+.PP
+Note, when using a \fI.xserverrc\fP script be sure to ``exec'' the real X server.
+Failing to do this can make the X server slow to start and exit.  For example:
+.sp
+	exec Xdisplaytype
+.PP
+An important point is that programs which are run by \fI\.xinitrc\fP
+should be run in the background if they do
+not exit right away, so that they don't prevent other programs from
+starting up.
+However, the last long-lived program started (usually
+a window manager or terminal emulator) should be
+left in the foreground so that the script won't exit (which
+indicates that the user is done and that \fBxinit\fP should exit).
+.PP
+An alternate client and/or server may be specified on the
+command line.  The desired client program and its arguments should be given
+as the first command line arguments to \fBxinit\fP.  To specify a particular
+server command line, append a double dash (\-\^\-) to the \fBxinit\fP command
+line (after any client and arguments) followed by the desired server command.
+.PP
+Both the client program name and the server program name must begin with a
+slash (/) or a period (.).  Otherwise, they are treated as an arguments to be
+appended to their respective startup lines.  This makes it possible to
+add arguments (for example, foreground and background colors) without
+having to retype the whole command line.
+.PP
+If an explicit server name is not given and the first argument following the
+double dash (\-\^\-) is a colon followed by a digit, \fBxinit\fP will use that
+number as the display
+number instead of zero.  All remaining arguments are appended to the server
+command line.
+.PP
+.SH EXAMPLES
+Below are several examples of how command line arguments in \fBxinit\fP are
+used.
+.TP 8
+.B "xinit"
+This will start up a server named \fIX\fP and run the user's \fI\.xinitrc\fP,
+if it exists, or else start an \fIxterm\fP.
+.TP 8
+.B "xinit \-\^\- /usr/local/bin/Xvnc  :1"
+This is how one could start a specific type of server on an alternate display.
+.TP 8
+.B "xinit \-geometry =80x65+10+10 \-fn 8x13 \-j \-fg white \-bg navy"
+This will start up a server named \fIX\fP, and will append the given
+arguments to the default \fIxterm\fP command.  It will ignore \fI\.xinitrc\fP.
+.TP 8
+.B "xinit \-e widgets \-\^\- ./Xorg \-l \-c"
+This will use the command \fI\.\/Xorg \-l \-c\fP to start the server and will
+append the arguments \fI\-e widgets\fP to the default \fIxterm\fP command.
+.TP 8
+.B "xinit /usr/ucb/rsh fasthost cpupig \-display ws:1 \-\^\-  :1 \-a 2 \-t 5"
+This will start a server named \fIX\fP on display 1 with the arguments
+\fI\-a 2 \-t 5\fP.  It will then start a remote shell on the machine
+\fBfasthost\fP in which it will run the command \fIcpupig\fP, telling it
+to display back on the local workstation.
+.PP
+Below is a sample \fI\.xinitrc\fP that starts a clock, several terminals, and
+leaves the window manager running as the ``last'' application.  Assuming that
+the window manager has been configured properly, the user
+then chooses the ``Exit'' menu item to shut down X.
+.sp
+.in +8
+.nf
+xrdb \-load $HOME/.Xresources
+xsetroot \-solid gray &
+xclock \-g 50x50\-0+0 \-bw 0 &
+xload \-g 50x50\-50+0 \-bw 0 &
+xterm \-g 80x24+0+0 &
+xterm \-g 80x24+0\-0 &
+twm
+.fi
+.in -8
+.sp
+Sites that want to create a common startup environment could simply create
+a default \fI\.xinitrc\fP that references a site-wide startup file:
+.sp
+.in +8
+.nf
+\&#!/bin/sh
+\&. /usr/local/lib/site.xinitrc
+.fi
+.in -8
+.sp
+Another approach is to write a script that starts \fBxinit\fP with a specific
+shell script.  Such scripts are usually named \fIx11\fP, \fIxstart\fP, or
+\fIstartx\fP and are a convenient way to provide a simple interface for
+novice users:
+.sp
+.in +8
+.nf
+\&#!/bin/sh
+xinit /usr/local/lib/site.xinitrc \-\^\- __bindir__/X -br
+.fi
+.in -8
+.sp
+.SH "ENVIRONMENT VARIABLES"
+.TP 15
+.B DISPLAY
+This variable gets set to the name of the display to which clients should
+connect.
+.TP 15
+.B XINITRC
+This variable specifies an init file containing shell commands to start up the
+initial windows.  By default, \fI\.xinitrc\fP in the home directory will be
+used.
+.SH FILES
+.TP 15
+.I .xinitrc
+default client script
+.TP 15
+.I xterm
+client to run if \fI.xinitrc\fP does not exist
+.TP 15
+.I .xserverrc
+default server script
+.TP 15
+.I X
+server to run if \fI.xserverrc\fP does not exist
+.SH "SEE ALSO"
+.BR X (__miscmansuffix__),
+.BR startx (__appmansuffix__),
+.BR Xserver (__appmansuffix__),
+.BR __XSERVERNAME__ (__appmansuffix__),
+.BR __XCONFIGFILEMAN__,
+.BR xterm (__appmansuffix__)
+.SH AUTHOR
+Bob Scheifler, MIT Laboratory for Computer Science
diff --git a/startx.man b/startx.man
deleted file mode 100644
index 0405be0..0000000
--- a/startx.man
+++ /dev/null
@@ -1,224 +0,0 @@
-.\"
-.\" Copyright 1993, 1998  The Open Group
-.\"
-.\" Permission to use, copy, modify, distribute, and sell this software and its
-.\" documentation for any purpose is hereby granted without fee, provided that
-.\" the above copyright notice appear in all copies and that both that
-.\" copyright notice and this permission notice appear in supporting
-.\" documentation.
-.\"
-.\" The above copyright notice and this permission notice shall be included
-.\" in all copies or substantial portions of the Software.
-.\"
-.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
-.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-.\" OTHER DEALINGS IN THE SOFTWARE.
-.\"
-.\" Except as contained in this notice, the name of The Open Group shall
-.\" not be used in advertising or otherwise to promote the sale, use or
-.\" other dealings in this Software without prior written authorization
-.\" from The Open Group.
-.\"
-.\"
-.TH STARTX __appmansuffix__ __xorgversion__
-.SH NAME
-startx \- initialize an X session
-.SH SYNOPSIS
-.B startx
-[ [
-.I client
-]
-.I options
-\&\.\|.\|. ] [
-.B \-\^\-
-[
-.I server
-] [
-.I display
-]
-.I options
-\&.\|.\|. ]
-.SH DESCRIPTION
-The \fBstartx\fP script is a front end to
-.BR xinit (__appmansuffix__)
-that provides a
-somewhat nicer user interface for running a single session of the X
-Window System.  It is often run with no arguments.
-.PP
-Arguments immediately following the
-.I startx
-command are used to start a client in the same manner as
-.BR xinit (__appmansuffix__).
-The special argument
-.RB '--'
-marks the end of client arguments and the beginning of server options.
-It may be convenient to specify server options with startx to change on a
-per-session basis the
-default color depth, the server's notion of the number of dots-per-inch the
-display device presents, or take advantage of a different server layout, as
-permitted by the
-.BR __XSERVERNAME__ (__appmansuffix__)
-server and specified in the
-.BR __XCONFIGFILEMAN__
-configuration.  Some examples of specifying server arguments follow; consult
-the manual page for your X server to determine which arguments are legal.
-.RS
-.PP
-startx -- -depth 16
-.PP
-startx -- -dpi 100
-.PP
-startx -- -layout Multihead
-.RE
-.if '__SCOMAN__'' .ig
-.PP
-To determine the client to run,
-.B startx
-looks for the following files, in order:
-.RS
-.PP
-.I $(HOME)/.startxrc
-.PP
-.I __libdir__/sys.startxrc
-.PP
-.I $(HOME)/.xinitrc
-.PP
-.I __xinitdir__/xinitrc
-.RE
-.PP
-..
-.if !'x.__SCOMAN__'x.' .ig
-.PP
-To determine the client to run,
-.B startx
-first looks for a file called
-.I .xinitrc
-in the user's home directory.  If that is not found, it uses
-the file
-.I xinitrc
-in the
-.I xinit
-library directory.
-..
-If command line client options are given, they override this
-behavior and revert to the
-.BR xinit (__appmansuffix__)
-behavior.
-To determine the server to run,
-.B startx
-first looks for a file called
-.I .xserverrc
-in the user's home directory.  If that is not found, it uses
-the file
-.I xserverrc
-in the
-.I xinit
-library directory.
-If command line server options are given, they override this
-behavior and revert to the
-.BR xinit (__appmansuffix__)
-behavior.  Users rarely need to provide a
-.I .xserverrc
-file.
-See the
-.BR xinit (__appmansuffix__)
-manual page for more details on the arguments.
-.PP
-The system-wide
-.I xinitrc
-and
-.I xserverrc
-files are found in the
-.I __xinitdir__
-directory.
-.PP
-The
-.I .xinitrc
-is typically a shell script which starts many clients according to the
-user's preference.  When this shell script exits,
-.B startx
-kills the server and performs any other session shutdown needed.
-Most of the clients started by
-.I .xinitrc
-should be run in the background.  The last client should run in the
-foreground; when it exits, the session will exit.  People often choose
-a session manager, window manager, or \fIxterm\fP as the ''magic'' client.
-.SH EXAMPLE
-.PP
-Below is a sample \fI\.xinitrc\fP that starts several applications and
-leaves the window manager running as the ''last'' application.  Assuming that
-the window manager has been configured properly, the user
-then chooses the ''Exit'' menu item to shut down X.
-.sp
-.in +4
-.nf
-xrdb \-load $HOME/.Xresources
-xsetroot \-solid gray &
-xbiff \-geometry \-430+5 &
-oclock \-geometry 75x75\-0\-0 &
-xload \-geometry \-80\-0 &
-xterm \-geometry +0+60 \-ls &
-xterm \-geometry +0\-100 &
-xconsole \-geometry \-0+0 \-fn 5x7 &
-exec twm
-.fi
-.in -4
-.SH "ENVIRONMENT VARIABLES"
-.TP 25
-DISPLAY
-This variable gets set to the name of the display to which clients should
-connect.  Note that this gets
-.IR set ,
-not read.
-.TP 25
-XAUTHORITY
-This variable, if not already defined, gets set to
-.IR $(HOME)/.Xauthority .
-This is to prevent the X server, if not given the
-.I \-auth
-argument, from automatically setting up insecure host-based authentication
-for the local host.  See the
-.BR Xserver (__appmansuffix__)
-and
-.IR Xsecurity (__miscmansuffix__)
-manual pages for more information on X client/server authentication.
-.SH FILES
-.if '__SCOMAN__'' .ig
-.TP 25
-.I $(HOME)/.startxrc
-Client to run.  Typically a shell script which runs many programs in
-the background.
-.TP 25
-.I __libdir__/sys.startxrc
-Client to use if the user has no
-.I .startxrc
-file.
-..
-.TP 25
-.I $(HOME)/.xinitrc
-Client to run.  Typically a shell script which runs many programs in
-the background.
-.TP 25
-.I $(HOME)/.xserverrc
-Server to run.  The default is
-.IR X .
-.TP 25
-.I __xinitdir__/xinitrc
-Client to run if the user has no
-.I .xinitrc
-file.
-.TP 25
-.I __xinitdir__/xserverrc
-Server to run if the user has no
-.I .xserverrc
-file.
-.SH "SEE ALSO"
-.BR xinit (__appmansuffix__),
-.BR X (__miscmansuffix__),
-.BR Xserver (__appmansuffix__),
-.BR __XSERVERNAME__ (__appmansuffix__),
-.BR __XCONFIGFILEMAN__
diff --git a/xinit.man b/xinit.man
deleted file mode 100644
index 31b93aa..0000000
--- a/xinit.man
+++ /dev/null
@@ -1,199 +0,0 @@
-.\"
-.\" Copyright 1988, 1998  The Open Group
-.\"
-.\" Permission to use, copy, modify, distribute, and sell this software and its
-.\" documentation for any purpose is hereby granted without fee, provided that
-.\" the above copyright notice appear in all copies and that both that
-.\" copyright notice and this permission notice appear in supporting
-.\" documentation.
-.\"
-.\" The above copyright notice and this permission notice shall be included
-.\" in all copies or substantial portions of the Software.
-.\"
-.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
-.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-.\" OTHER DEALINGS IN THE SOFTWARE.
-.\"
-.\" Except as contained in this notice, the name of The Open Group shall
-.\" not be used in advertising or otherwise to promote the sale, use or
-.\" other dealings in this Software without prior written authorization
-.\" from The Open Group.
-.\"
-.TH XINIT __appmansuffix__ __xorgversion__
-.SH NAME
-xinit \- X Window System initializer
-.SH SYNOPSIS
-.B xinit
-[ [
-.I client
-]
-.I options
-\&\.\|.\|. ] [
-.B \-\^\-
-[
-.I server
-] [
-.I display
-]
-.I options
-\&.\|.\|. ]
-.SH DESCRIPTION
-The \fBxinit\fP program is used to start the X Window System server and a first
-client program on systems that are not using a display manager such as
-.BR xdm (__appmansuffix__)
-or in environments
-that use multiple window systems.  When this first client exits,
-\fBxinit\fP will kill the X server and then terminate.
-.PP
-If no specific client program is given on the command line,
-\fBxinit\fP will look for a file in the user's home directory
-called \fI.xinitrc\fP to run as a shell script to start up client programs.
-If no such file exists, \fBxinit\fP will use the following as a default:
-.sp
-	xterm  \-geometry  +1+1  \-n  login  \-display  :0
-.sp
-.PP
-If no specific server program is given on the command line,
-\fBxinit\fP will look for a file in the user's home directory
-called \fI.xserverrc\fP to run as a shell script to start up the server.
-If no such file exists, \fIxinit\fP will use the following as a default:
-.sp
-	X  :0
-.sp
-Note that this assumes that there is a program named \fIX\fP in the current
-search path.  The site administrator should, therefore, make a link to the
-appropriate type of server on the machine, or create a shell script that
-runs \fBxinit\fP with the appropriate server.
-.PP
-Note, when using a \fI.xserverrc\fP script be sure to ``exec'' the real X server.
-Failing to do this can make the X server slow to start and exit.  For example:
-.sp
-	exec Xdisplaytype
-.PP
-An important point is that programs which are run by \fI\.xinitrc\fP
-should be run in the background if they do
-not exit right away, so that they don't prevent other programs from
-starting up.
-However, the last long-lived program started (usually
-a window manager or terminal emulator) should be
-left in the foreground so that the script won't exit (which
-indicates that the user is done and that \fBxinit\fP should exit).
-.PP
-An alternate client and/or server may be specified on the
-command line.  The desired client program and its arguments should be given
-as the first command line arguments to \fBxinit\fP.  To specify a particular
-server command line, append a double dash (\-\^\-) to the \fBxinit\fP command
-line (after any client and arguments) followed by the desired server command.
-.PP
-Both the client program name and the server program name must begin with a
-slash (/) or a period (.).  Otherwise, they are treated as an arguments to be
-appended to their respective startup lines.  This makes it possible to
-add arguments (for example, foreground and background colors) without
-having to retype the whole command line.
-.PP
-If an explicit server name is not given and the first argument following the
-double dash (\-\^\-) is a colon followed by a digit, \fBxinit\fP will use that
-number as the display
-number instead of zero.  All remaining arguments are appended to the server
-command line.
-.PP
-.SH EXAMPLES
-Below are several examples of how command line arguments in \fBxinit\fP are
-used.
-.TP 8
-.B "xinit"
-This will start up a server named \fIX\fP and run the user's \fI\.xinitrc\fP,
-if it exists, or else start an \fIxterm\fP.


Reply to: