From 99ceecbf0ec7b6486d3716b6cc6954160dc21d58 Mon Sep 17 00:00:00 2001 From: Doro Wu Date: Sun, 24 Feb 2019 21:44:07 +0800 Subject: [PATCH] feat: add OPENBOX_ARGS (issue #97) --- image/startup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image/startup.sh b/image/startup.sh index b2bada2..875519d 100755 --- a/image/startup.sh +++ b/image/startup.sh @@ -12,6 +12,10 @@ if [ -n "$X11VNC_ARGS" ]; then sed -i "s/^command=x11vnc.*/& ${X11VNC_ARGS}/" /etc/supervisor/conf.d/supervisord.conf fi +if [ -n "$OPENBOX_ARGS" ]; then + sed -i "s#^command=/usr/bin/openbox.*#& ${OPENBOX_ARGS}#" /etc/supervisor/conf.d/supervisord.conf +fi + if [ -n "$RESOLUTION" ]; then sed -i "s/1024x768/$RESOLUTION/" /usr/local/bin/xvfb.sh fi