#!/bin/sh
# userland/fasadas/launchers/fzaores  ->  /bin/fzaores
#
# The ao_resize_shot.sh session launcher (#958): starts the FULL desktop
# session with the AO_ autoresizing demo as the client. The gate boots the
# "squashfs root — verbose console" entry (a shell), runs `aoresize --audit`
# headlessly, then types `fzaores` to bring the desktop up for the visual
# half — so the launcher must do everything a `nextgen` boot does, plus
# point fasadasd at aoresize.
#
# fasadasd reads the client from FASADAS_CLIENT (fasadasd.c), so the variable
# crosses the exec boundary; /bin/fasadas then prepares the runtime dirs and
# the graphics environment exactly as init does on a graphical boot.
set -u
export FASADAS_CLIENT=/bin/aoresize
exec /bin/fasadas
