2.0.0 work
This commit is contained in:
@@ -19,7 +19,7 @@ else
|
||||
# Use workstation args
|
||||
chromargs="--test-type --ignore-certificate-errors --start-fullscreen --no-first-run --check-for-update-interval=1 --simulate-upgrade --incognito"
|
||||
fi
|
||||
if ! chromium $chromargs $url
|
||||
if ! chromium $chromargs $url >/dev/null 2>&1
|
||||
then
|
||||
kiosk_cleanup.sh
|
||||
xmessage -buttons "Ok:1" -center "Failed to retrieve web page."
|
||||
|
||||
@@ -15,7 +15,7 @@ source $conf_file
|
||||
if echo "$url" | grep -q '^file:'
|
||||
then
|
||||
filepath=$(echo "$server_url"|cut -d"/" -f2-)
|
||||
xpdf -fullscreen -cont -z width $filepath
|
||||
xpdf -fullscreen -cont -z width $filepath >/dev/null 2>&1
|
||||
else
|
||||
if ! wget -q -O /dev/shm/target.pdf $url
|
||||
then
|
||||
@@ -23,7 +23,7 @@ else
|
||||
xmessage -buttons "Ok:1" -center "Failed to retrieve pdf file."
|
||||
exit 1
|
||||
else
|
||||
xpdf -fullscreen -cont -z width /dev/shm/target.pdf
|
||||
xpdf -fullscreen -cont -z width /dev/shm/target.pdf >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ debuglog "Monitoring for URL and config file changes..."
|
||||
debuglog "Reading config file"
|
||||
source $conf_file
|
||||
|
||||
if ! pgrep $ALIVE_STRING
|
||||
if ! pgrep $ALIVE_STRING >/dev/null 2>&1
|
||||
then
|
||||
# relaunch application if it terminates
|
||||
if $krestart
|
||||
|
||||
Reference in New Issue
Block a user