fix lp on nix

This commit is contained in:
Connor Rhodes 2026-04-23 20:19:14 -05:00
parent b0c19d5642
commit 2d61260583
2 changed files with 7 additions and 2 deletions

View file

@ -68,7 +68,12 @@ def upload_and_print():
app.logger.info(
f"Sending '{filename}' ({page_count} pages) to printer '{PRINTER_NAME}'"
)
command = ["lp", "-d", PRINTER_NAME, filepath]
command = [
"lp",
"-d",
PRINTER_NAME,
filepath,
]
result = subprocess.run(
command, capture_output=True, text=True, check=True
)