feat: default to an 80 mm USB thermal printer
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>
This commit is contained in:
3
.env
3
.env
@@ -1,7 +1,8 @@
|
||||
# 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). Remove or leave empty to disable printing.
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user