3e3038
#!/bin/sh
3e3038
3e3038
if [ ! -e ~/.local/bin/redhat-kiosk ]; then
3e3038
    mkdir -p ~/.local/bin ~/.config
3e3038
    cat > ~/.local/bin/redhat-kiosk << EOF
3e3038
#!/bin/sh
3e3038
# This script is located in ~/.local/bin.
3e3038
# It's provided as an example script to show how
3e3038
# the kiosk session works.  At the moment, the script
3e3038
# just starts a text editor open to itself, but it
3e3038
# should get customized to instead start a full screen
3e3038
# application designed for the kiosk deployment.
3e3038
# The "while true" bit just makes sure the application gets
3e3038
# restarted if it dies for whatever reason.
3e3038
3e3038
while true; do
3e3038
    gedit ~/.local/bin/redhat-kiosk
3e3038
done
3e3038
3e3038
EOF
3e3038
3e3038
    chmod +x ~/.local/bin/redhat-kiosk
3e3038
    touch ~/.config/gnome-initial-setup-done
3e3038
fi
3e3038
31b1de
export DCONF_PROFILE=redhatkiosk
115d0a
systemctl --user import-environment DCONF_PROFILE
115d0a
3e3038
exec ~/.local/bin/redhat-kiosk "$@"