From ef67065889c696d41b5c8bda391063342a5a338c Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sun, 23 Sep 2018 17:25:30 +0200 Subject: [PATCH] default to duplex printing --- screenless/bureau/bureau.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/bureau.py b/screenless/bureau/bureau.py index 0a57047..135553d 100644 --- a/screenless/bureau/bureau.py +++ b/screenless/bureau/bureau.py @@ -341,7 +341,7 @@ class Bureau(object): self.log.debug("rendering with: " + self.html2pdf + htmlpath + " " + pdfpath) subprocess.call(self.html2pdf + htmlpath + " " + pdfpath + " A4 1920px", shell=True) - subprocess.call("lpr " + pdfpath, shell=True) + subprocess.call("lpr -o sides=two-sided-long-edge -o InputSlot=Upper " + pdfpath, shell=True) # TODO: make this asynchronous def print_small(self, text, cut=True):