#!/usr/bin/env bash

. /usr/share/dosis2/bin/shell-support-functions

OS="`getos`"

# fetch the kiosk uri
weburi="`/usr/share/dosis2/bin/kiosk-uri ${1}`"


if [ "${OS}" = "Ubuntu" ]; then
    # go to the configured weburi
    dosis-kiosk
elif [ "${OS}" = "CentOS" ]; then
    /usr/bin/firefox -P default "${weburi}"
else
    abort 2 "Unknown OS: ${OS}"
fi
