Merge pull request #31 from matusnovak/master

Kill badly terminated old vnc session before vnc starts and fix gtk initialization failed
This commit is contained in:
sickcodes 2020-06-10 08:01:15 +07:00 committed by GitHub
commit 50fe9d369e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,8 +87,9 @@ RUN printf '%s\n' \
'xterm &' > ~/.vnc/xstartup
# this won't work if you have 99 monitors, 98 monitors is fine though
RUN printf '%s\n%s\n\n' \
RUN printf '%s\n%s\n%s\n\n' \
'export DISPLAY=:99' \
'vncserver -kill :99 || true' \
'vncserver -geometry 1920x1080 -depth ${DEPTH:=24} -xstartup ~/.vnc/xstartup :99' > vnc.sh
RUN cat vnc.sh OpenCore-Boot.sh > OpenCore-Boot_custom.sh