Adjustments to support workstation mode

This commit is contained in:
2026-02-27 14:30:51 -05:00
parent 6dbb650431
commit 77a250ce08
14 changed files with 93 additions and 73 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# kiosk_viewpdf
if [ "$1" = "" ]
then
"usage: kiosk_viewpdf <url> <config file path>"
exit 1
fi
url="$1"
conf_file="$2"
source $conf_file
if echo "$url" | grep -q '^file:'
then
filepath=$(echo "$server_url"|cut -d"/" -f2-)
xpdf -fullscreen -cont -z width $filepath
else
if ! wget -q -O /dev/shm/target.pdf $url
then
kiosk_cleanup.sh
xmessage -buttons "Ok:1" -center "Failed to retrieve pdf file."
exit 1
else
xpdf -fullscreen -cont -z width /dev/shm/target.pdf
fi
fi