diff --git a/rootfs/startup.sh b/rootfs/startup.sh index 941520a5..3857da0e 100755 --- a/rootfs/startup.sh +++ b/rootfs/startup.sh @@ -17,7 +17,8 @@ if [ -n "$OPENBOX_ARGS" ]; then fi if [ -n "$RESOLUTION" ]; then - sed -i "s/1024x768/$RESOLUTION/" /usr/local/bin/xvfb.sh + NEW=$(echo "exec /usr/bin/Xvfb :1 -screen 0 $RESOLUTION" | sed 's/\//\\\//g') + sed -i '/'"-screen"'/s/.*/'"${NEW}"'/' /usr/local/bin/xvfb.sh fi USER=${USER:-root}