Skip to content

Commit

Permalink
Take picture of all display
Browse files Browse the repository at this point in the history
  • Loading branch information
rodarima committed Dec 30, 2023
1 parent f32c39a commit 282239d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/html/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ function render_page() {
"$DILLOBIN" -f "$htmlfile" >/dev/null 2>&1 &
dillopid=$!
# We need a better system to determine when the page loaded...
sleep 0.5
winid=$(xwininfo -all -root | awk '/Dillo:/ {print $1}')
if [ -z "$winid" ]; then
echo "cannot find Dillo window" >&2
exit 1
fi
xwd -id "$winid" -silent | convert xwd:- png:${outpic}
sleep 2
#winid=$(xwininfo -all -root | awk '/Dillo:/ {print $1}')
#if [ -z "$winid" ]; then
# echo "cannot find Dillo window" >&2
# exit 1
#fi
#xwd -id "$winid" -silent | convert xwd:- png:${outpic}
xwd -root -silent | convert xwd:- png:${outpic}
kill "$dillopid"
}

Expand Down

0 comments on commit 282239d

Please sign in to comment.