cubicweb/devtools/data/xvfb-run.sh
changeset 12821 fce106b9977d
parent 11057 0b59724cb3f2
equal deleted inserted replaced
12820:da416fb21657 12821:fce106b9977d
   146 # If the user did not specify an X authorization file to use, set up a temporary
   146 # If the user did not specify an X authorization file to use, set up a temporary
   147 # directory to house one.
   147 # directory to house one.
   148 if [ -z "$AUTHFILE" ]; then
   148 if [ -z "$AUTHFILE" ]; then
   149     XVFB_RUN_TMPDIR="$(mktemp -d -t $PROGNAME.XXXXXX)"
   149     XVFB_RUN_TMPDIR="$(mktemp -d -t $PROGNAME.XXXXXX)"
   150     # Create empty file to avoid xauth warning
   150     # Create empty file to avoid xauth warning
   151     AUTHFILE=$(tempfile -n "$XVFB_RUN_TMPDIR/Xauthority")
   151     touch "$XVFB_RUN_TMPDIR/Xauthority"
       
   152     AUTHFILE="$XVFB_RUN_TMPDIR/Xauthority"
   152 fi
   153 fi
   153 
   154 
   154 # Start Xvfb.
   155 # Start Xvfb.
   155 MCOOKIE=$(mcookie)
   156 MCOOKIE=$(mcookie)
   156 tries=10
   157 tries=10