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
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if [ -n "$OPENBOX_ARGS" ]; then
fi fi
if [ -n "$RESOLUTION" ]; then 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 fi
USER=${USER:-root} USER=${USER:-root}