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:
bankosegger
2026-11-11 15:06:36 +01:00
parent a2b83744db
commit 4fb2ad7757
3 changed files with 33 additions and 9 deletions

3
.env
View File

@@ -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