> > DISPLAY=:1 is short hand for connecting via the Unix socket > "/tmp/.X11-unix/X1". > > That will only works if both the X server and applications run in > the same base filesystem. > > If you chroot the application and not Xephyr, then the application > cannot found the unix socket. >
It is worth noting that you can move (not copy) UNIX sockets (again, so long as they are on the same filesystem). So, once Xephyr has started up, you can move the socket from "/tmp/.X11-unix/X1" into "$CHROOT/tmp/.X11-unix/X1" and then your chroot application can access it.

