/usr/share/ltsp/plugins/ltsp-build-client/Debian/035-kiosk is in ltsp-server 5.5.7-1.
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 | 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"
KIOSK_BROWSER=${KIOSK_BROWSER:-"iceweasel"}
KIOSK_WM=${KIOSK_WM:-"metacity"}
KIOSK_PACKAGES="${KIOSK_PACKAGES} devilspie"
# install the webbrowser and related packages
EARLY_PACKAGES="$EARLY_PACKAGES $KIOSK_BROWSER $KIOSK_PACKAGES"
fi
;;
after-install)
if [ "True" = "$KIOSK" ]; then
# install window manager without recommends, otherwise metacity pulls in
# half or more of gnome... not ideal, but it works.
chroot $ROOT apt-get $APT_GET_OPTS --no-install-recommends install $KIOSK_WM
fi
;;
esac
|