Fall back to /dev/usb/lp0 at 576 dots when the printer variables are unset; an empty PHOTOBOOTH_PRINTER still disables printing. Log the resolved printer at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
539 B
Bash
12 lines
539 B
Bash
# Photobooth configuration, loaded from the directory the app is started from.
|
|
# Variables already set in the environment (e.g. by systemd) take precedence.
|
|
# Every variable is optional; the values below are the built-in defaults.
|
|
|
|
# Thermal printer (ESC/POS). Set to an empty value to disable printing.
|
|
# A device path for USB/serial printers, or tcp://host[:port] for network
|
|
# printers (port defaults to 9100).
|
|
PHOTOBOOTH_PRINTER=/dev/usb/lp0
|
|
|
|
# Printable width in dots: 576 for 80 mm paper (384 for 58 mm).
|
|
PHOTOBOOTH_PRINTER_DOTS=576
|