feat: add OPENBOX_ARGS (issue #97)

This commit is contained in:
Doro Wu 2019-02-24 21:44:07 +08:00
parent f1d608d92c
commit 99ceecbf0e
No known key found for this signature in database
GPG key ID: 3F2E4F1C2D4A1AA4

View file

@ -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