feat: support x11vnc args - X11VNC_ARGS (bug #101)
Docker env X11VNC_ARGS
This commit is contained in:
parent
e6441d418a
commit
0adc0da8e8
|
|
@ -17,7 +17,7 @@ RUN apt-get update \
|
|||
supervisor nginx sudo vim-tiny net-tools zenity xz-utils \
|
||||
dbus-x11 x11-utils alsa-utils \
|
||||
mesa-utils libgl1-mesa-dri \
|
||||
lxde xvfb x11vnc \
|
||||
lxde xvfb x11vnc=0.9.16 \
|
||||
gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
|
||||
firefox chromium-browser \
|
||||
ttf-ubuntu-font-family ttf-wqy-zenhei \
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ Troubleshooting and FAQ
|
|||
1. boot2docker connection issue, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/2
|
||||
2. Multi-language supports, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/80
|
||||
3. Autostart, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/85
|
||||
4. x11vnc arguments(multiptr), https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/101
|
||||
|
||||
License
|
||||
==================
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@ if [ -n "$VNC_PASSWORD" ]; then
|
|||
export VNC_PASSWORD=
|
||||
fi
|
||||
|
||||
if [ -n "$X11VNC_ARGS" ]; then
|
||||
sed -i "s/^command=x11vnc.*/& ${X11VNC_ARGS}/" /etc/supervisor/conf.d/supervisord.conf
|
||||
fi
|
||||
|
||||
if [ -n "$RESOLUTION" ]; then
|
||||
sed -i "s/1024x768/$RESOLUTION/" /usr/local/bin/xvfb.sh
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue