Added conf_file arguments to view scripts
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user