fixes resolution setup

If the resolution is different from 1024x768 the script does not update the resolution any more.
This update allows the resolution and depth to be updated regardless of the current value.
This commit is contained in:
leonardpitzu 2019-09-26 10:10:37 +03:00 committed by GitHub
parent ee4b0bf9ec
commit d8643cd7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ if [ -n "$OPENBOX_ARGS" ]; then
fi
if [ -n "$RESOLUTION" ]; then
sed -i "s/1024x768/$RESOLUTION/" /usr/local/bin/xvfb.sh
sed -i "s/.*exec /usr/bin/Xvfb :1 -screen.*/exec /usr/bin/Xvfb :1 -screen 0 $RESOLUTION/" /usr/local/bin/xvfb.sh
fi
USER=${USER:-root}