Skip to content

Commit

Permalink
Increase timeouts for screen moving
Browse files Browse the repository at this point in the history
  • Loading branch information
schlomo committed Oct 22, 2013
1 parent ed6d22b commit 9842d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/var/lib/kiosk-browser/.xsession
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ while true; do
# if KIOSK_BROWSER_PORTS is set, assume that it specifies multiple screens connected.
for (( c=0 ; c<${#KIOSK_BROWSER_PORTS[@]} ; c++ )) ; do
chromium-browser --user-data-dir=$HOME/.config/chromium/$c "${KIOSK_BROWSER_OPTIONS[@]}" --disable-translate --no-first-run --start-maximized --kiosk "${KIOSK_BROWSER_START_PAGE[c]:-$KIOSK_BROWSER_START_PAGE}" &
sleep 1
sleep 5
# move new window to the current screen. We identify the window by the --user-data-dir option which appears in the window class name :-)
port=$(xrandr_find_port "${KIOSK_BROWSER_PORTS[c]}")
port_x=$(sed -ne "/$port/s#[^+].*+\([0-9]\+\)+.*#\1#p" <<<"$XRANDR_OUTPUT")
xdotool search --classname chromium/$c windowmove --sync $port_x 0
done

wait # for the browsers to finish
sleep 5
sleep 15
done

0 comments on commit 9842d0f

Please sign in to comment.