Blame SOURCES/redhat-kiosk

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