Changes

Sugar breaks with restricted Xephyrs.
Line 34: Line 34:  
We're going to try option (3) first:
 
We're going to try option (3) first:
   −
  # ''outside chroot''
+
  Xephyr -ac :1  
DISP=:1 # adjust to suit your configuration
  −
COOKIE=$(mcookie)
  −
AUTH=$(mktemp)
  −
echo "add $DISP . $COOKIE" | xauth -f "$AUTH"
  −
echo "add these commands to clients:"
  −
echo "export DISPLAY=\"localhost$DISP\""
  −
echo "export XAUTHORITY=\"$AUTH\""
  −
Xephyr -auth "$AUTH" -reset -terminate "$DISP" && rm "$AUTH"
     −
And, ''inside'' the chroot, set the <tt>DISPLAY</tt> and <tt>XAUTHORITY</tt> variables as directed by the setup script and copy the <tt>"$AUTH"</tt> file from outside the chroot into the chroot to the path assigned to <tt>"$XAUTHORITY"</tt>.
+
And, ''inside'' the chroot, set the <tt>DISPLAY</tt> to <tt>localhost:1</tt>.
    
=== D-Bus ===
 
=== D-Bus ===
76

edits