Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/scripts/gitpod/start-xvfb.sh
2867 views
1
#!/usr/bin/env bash
2
3
export GEOMETRY="${SCREEN_WIDTH}""x""${SCREEN_HEIGHT}""x""${SCREEN_DEPTH}"
4
5
rm -f /tmp/.X*lock
6
7
# Command reference
8
# http://manpages.ubuntu.com/manpages/focal/man1/xvfb-run.1.html
9
# http://manpages.ubuntu.com/manpages/focal/man1/Xvfb.1.html
10
# http://manpages.ubuntu.com/manpages/focal/man1/Xserver.1.html
11
/usr/bin/xvfb-run --server-num=${DISPLAY_NUM} \
12
--listen-tcp \
13
--server-args="-screen 0 ${GEOMETRY} -fbdir /var/tmp -dpi ${SCREEN_DPI} -listen tcp -noreset -ac +extension RANDR" \
14
/usr/bin/fluxbox -display ${DISPLAY}
15
16