switched to chrome's args for window adjustment

wiki
Tomohisa Kusano 10 years ago
parent c1c97b91bf
commit f703b43e61

@ -18,7 +18,6 @@ RUN apt-get update \
wget \
x11vnc \
xdg-utils \
xdotool \
xvfb
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /chrome.deb

@ -2,7 +2,6 @@
set -e
Xvfb :1 -screen 0 1024x768x24 &
DISPLAY=:1 /opt/google/chrome/chrome --user-data-dir --no-sandbox &
DISPLAY=:1 xdotool search --sync --onlyvisible --class "chrome" windowsize 1024 768
DISPLAY=:1 /opt/google/chrome/chrome --user-data-dir --no-sandbox --window-position=0,0 --window-size=1024,768 &
exec "$@"

Loading…
Cancel
Save