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

@@ -36,18 +36,18 @@ function set_commands() {
elif echo "$TGT_URL" | grep -q '\.pdf$'
then
# The URL is a pdf file
APP_CMD="kiosk_viewpdf $TGT_URL"
APP_CMD="kiosk_viewpdf $TGT_URL $conf_file"
ALIVE_STRING="xpdf"
KILL_CMD="pkill xpdf"
CLEANUP_CMD="kiosk_cleanup"
debuglog "URL is a pdf file. Command is $PDF_APP_CMD"
debuglog "URL is a pdf file. Command is $APP_CMD"
else
# Assume the URL returns HTML
APP_CMD="kiosk_viewhtml $TGT_URL"
APP_CMD="kiosk_viewhtml $TGT_URL $conf_file"
ALIVE_STRING="chromium"
KILL_CMD="pkill chromium"
CLEANUP_CMD="kiosk_cleanup"
debuglog "URL is an HTML file. Command is $HTML_APP_CMD"
debuglog "URL is an HTML file. Command is $APP_CMD"
fi
}