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:
parent
ee4b0bf9ec
commit
d8643cd7ce
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue