Added conf_file arguments to view scripts

This commit is contained in:
2026-02-27 10:53:47 -05:00
parent fb023135f2
commit 95703efa61
3 changed files with 17 additions and 11 deletions

View File

@@ -3,15 +3,18 @@
if [ "$1" = "" ]
then
"You must supply a URL as an argument"
"usage: kiosk_viewhtml <url> <config file path>"
exit 1
fi
source /etc/openkiosk.conf
url="$1"
conf_file="$2"
source $conf_file
if ! chromium --test-type --ignore-certificate-errors --kiosk \
--no-first-run --check-for-update-interval=1 --simulate-upgrade \
--incognito $1
--incognito $url
then
kiosk_cleanup.sh
xmessage -buttons "Ok:1" -center "Failed to retrieve web page."