mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-10-30 00:23:45 -05:00
Kill badly terminated old vnc session before vnc starts
This commit is contained in:
parent
1950bec782
commit
2c19db36f9
@ -87,8 +87,9 @@ RUN printf '%s\n' \
|
|||||||
'xterm &' > ~/.vnc/xstartup
|
'xterm &' > ~/.vnc/xstartup
|
||||||
|
|
||||||
# this won't work if you have 99 monitors, 98 monitors is fine though
|
# 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' \
|
'export DISPLAY=:99' \
|
||||||
|
'vncserver -kill :99 || true' \
|
||||||
'vncserver -geometry 1920x1080 -depth ${DEPTH:=24} -xstartup ~/.vnc/xstartup :99' > vnc.sh
|
'vncserver -geometry 1920x1080 -depth ${DEPTH:=24} -xstartup ~/.vnc/xstartup :99' > vnc.sh
|
||||||
|
|
||||||
RUN cat vnc.sh OpenCore-Boot.sh > OpenCore-Boot_custom.sh
|
RUN cat vnc.sh OpenCore-Boot.sh > OpenCore-Boot_custom.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user