mirror of
https://github.com/siomiz/chrome
synced 2024-11-18 21:28:07 +00:00
use xdotool to make the window fill screen
This commit is contained in:
parent
dee65b230c
commit
c1c97b91bf
@ -18,6 +18,7 @@ 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
|
||||
|
@ -3,5 +3,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
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user