This commit is contained in:
leonardpitzu 2021-04-04 09:43:02 +08:00 committed by GitHub
commit 9105c8f951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ 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 NEW=$(echo "exec /usr/bin/Xvfb :1 -screen 0 $RESOLUTION" | sed 's/\//\\\//g')
sed -i '/'"-screen"'/s/.*/'"${NEW}"'/' /usr/local/bin/xvfb.sh
fi fi
USER=${USER:-root} USER=${USER:-root}