Blame SOURCES/redhat-kiosk

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