Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable kiosk printing for all apps but mark #365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions run-scripts/run-kiosk-browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@
set -euo pipefail

URL=${1:-http://localhost:3000}
: "${VX_CONFIG_ROOT:="./config"}"
: "${VX_METADATA_ROOT:="./"}"

OS=$(lsb_release -cs)
Comment on lines -6 to -9
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like they don't need to be here.

PRINTER_FILE='./printing/debian-printer-autoconfigure.json'

kiosk-browser \
--add-file-perm o=http://localhost:3000,p=/media/**/*,rw \
--add-file-perm o=http://localhost:3000,p=/var/log,ro \
--add-file-perm o=http://localhost:3000,p=/var/log/*,ro \
--autoconfigure-print-config ${PRINTER_FILE} \
--url ${URL} || true

case "${VX_MACHINE_TYPE:-}" in
scan|admin|central-scan)
# for these apps, kiosk browser does not need to or should not configure printers
kiosk-browser \
--add-file-perm o=http://localhost:3000,p=/media/**/*,rw \
--add-file-perm o=http://localhost:3000,p=/var/log,ro \
--add-file-perm o=http://localhost:3000,p=/var/log/*,ro \
--url ${URL} || true
;;
*)
# by default, for mark and development, kiosk browser handles configuring printers
kiosk-browser \
--add-file-perm o=http://localhost:3000,p=/media/**/*,rw \
--add-file-perm o=http://localhost:3000,p=/var/log,ro \
--add-file-perm o=http://localhost:3000,p=/var/log/*,ro \
--autoconfigure-print-config ${PRINTER_FILE} \
--url ${URL} || true
;;
esac
2 changes: 1 addition & 1 deletion vxsuite
Submodule vxsuite updated 1479 files