Carl Wilhelm Soderstrom wrote: > > > 3. Figure out how to use Xwrapper. I was disappointed to find there's > > not even a man page for it. > yeah, I was disappointed by that the first time I learned about it. > Debian has a man page for Xwrapper.config; but that's it. > I suspect it's because it's not part of the standard XFree86 > distribution (AFAIK)(dunno why). > > > I have no idea how xinit is supposed to > > know to run Xwrapper rather that the Xserver, unless by the X symlink, > > but then how does Xwrapper know which X server to run? > as I understand it, Xwrapper looks at the /etc/X11/X symlink, and > sees where that's pointed to (should be linked to /usr/X11R6/bin/XFree86 > these days).
OK, thiswhole business finally annoyed me enough to take a look at the Xwrapper source. The first thing I noticed is "Copyright (c) 1998 by The XFree86 Project, Inc." The way it decides what X server to run is this: /* This is normally set in the Imakefile */ #ifndef XSERVER_PATH #define XSERVER_PATH "/usr/X11R6/bin/XFree86" #endif As in any good setuid program, the path is wired into the program so it doesn't depend on the environment and can't be cheated. So the way to use it is to symlink X -> Xwrapper. Then startx will run xinit, which in turn will run X, which will actually be Xwrapper, which in turn will run the real X server that was chosen by the Imake procedure when XFree86 was built. Now I'm running 4.1.0, so things might be a bit different with 3.3.6 where multiple X servers are built and installed. -- Remember, more computing power was thrown away last week than existed in the world in 1982. -- http://www.tom.womack.net/computing/prices.html _______________________________________________ Newbie mailing list [EMAIL PROTECTED] *** To unsubscribe , or change message options, see: http://XFree86.Org/mailman/listinfo/newbie
