/usr/share/ltsp/plugins/ltsp-build-client/Ubuntu/030-kiosk is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | case "$MODE" in
commandline)
# add a commandline switch to ltsp-build-client (advanced "false" means
# we dont expect any value, callig --kiosk is enough, we could enhance
# the plugin to use --kiosk kde for example to install kdm and konqueror
# instead if we'd set it to true
add_option "kiosk" "`eval_gettext "a simple webkiosk mode"`" "advanced" "false"
;;
configure)
if [ -n "$option_kiosk_value" ]; then
# set an environment variable we can pick up later
KIOSK="True"
COMPONENTS="main restricted universe multiverse"
fi
;;
after-install)
if [ -n "$KIOSK" ]; then
BROWSER=${BROWSER:-"firefox"}
WM=${WM:-"metacity"}
THEME=${THEME:-"human-gtk-theme"}
# create ltspkiosk directories
mkdir -p $ROOT/usr/local/share/ltspkiosk/home
if [ "${THEME}" = "human-gtk-theme" ]; then
# switch to the proper theme
echo "include \"/usr/share/themes/Human/gtk-2.0/gtkrc\"" >$ROOT/usr/local/share/ltspkiosk/home/.gtkrc-2.0
fi
# install the webbrowser, window manager, and theme
chroot $ROOT apt-get $APT_GET_OPTS install ${WM} ${BROWSER} ${THEME} ${KIOSK_PACKAGES}
# Friendly message
echo "To put the client in kiosk mode, set SCREEN_07=kiosk in lts.conf."
fi
;;
esac
|