2
0
mirror of https://github.com/siomiz/chrome synced 2024-11-18 21:28:07 +00:00

switched to chrome's args for window adjustment

This commit is contained in:
Tomohisa Kusano 2014-12-06 05:41:09 +09:00
parent c1c97b91bf
commit f703b43e61
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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 "$@"