Use fbsetbg since the fluxbox version on Travis consistently overwrites configuration files with the defaults
This commit is contained in:
parent
118be99a3a
commit
d5464b0227
|
@ -6,24 +6,11 @@ resolution="$1" # e.g. 800x600x24 (width x height x bits_per_pixel)
|
||||||
shift # the following arguments are the program to execute and its arguments
|
shift # the following arguments are the program to execute and its arguments
|
||||||
|
|
||||||
bg="$(mktemp --suffix='.png')"
|
bg="$(mktemp --suffix='.png')"
|
||||||
fb_cfg="$(mktemp --suffix='fluxbox.cfg')"
|
|
||||||
fb_sty="$(mktemp --suffix='fluxbox.style')"
|
|
||||||
|
|
||||||
# Create solid black background
|
# Create solid black background
|
||||||
convert -size "$(echo "$resolution" | cut -d 'x' -f1-2)" tile:pattern:checkerboard "$bg"
|
convert -size "$(echo "$resolution" | cut -d 'x' -f1-2)" tile:pattern:checkerboard "$bg"
|
||||||
|
|
||||||
# Create minimalist fluxbox configuration
|
xvfb-run -a --server-args="-screen 0 ${resolution}" sh -c 'fluxbox 2>/dev/null & sleep 5; fbsetbg -f '"$bg"'; "$@"' utils/gui-wrapper.sh-subshell "$@"
|
||||||
cat > "$fb_sty" <<EOF
|
|
||||||
background: fullscreen
|
|
||||||
background.pixmap: $bg
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > "$fb_cfg" <<EOF
|
|
||||||
session.styleFile: $fb_sty
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
xvfb-run -a --server-args="-screen 0 ${resolution}" sh -c 'fluxbox -rc '"$fb_cfg"' 2>/dev/null & sleep 3; "$@"' utils/gui-wrapper.sh-subshell "$@"
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm "$bg" "$fb_cfg"
|
rm "$bg"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user