Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Change driver/PPD used for Brother printers #62

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.3

* Change Brother printer driver/PPD

## 0.2.2

* Update mimetype handling
Expand Down
2 changes: 1 addition & 1 deletion securedrop_export/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.2
0.2.3
4 changes: 2 additions & 2 deletions securedrop_export/print/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

PRINTER_NAME = "sdw-printer"
PRINTER_WAIT_TIMEOUT = 60
BRLASER_DRIVER = "/usr/share/cups/drv/brlaser.drv"
BRLASER_PPD = "/usr/share/cups/model/br7030.ppd"
BRLASER_DRIVER = "/usr/share/cups/drv/cupsfilters.drv"
BRLASER_PPD = "/usr/share/ppd/cupsfilters/pxlmono.ppd"
LASERJET_DRIVER = "/usr/share/cups/drv/hpcups.drv"
LASERJET_PPD = "/usr/share/cups/model/hp-laserjet_6l.ppd"

Expand Down
2 changes: 1 addition & 1 deletion tests/print/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_install_printer_ppd_brother(mocker):
submission = export.SDExport("testfile", TEST_CONFIG)
action = PrintExportAction(submission)
ppd = action.install_printer_ppd("usb://Brother/HL-L2320D%20series?serial=A00000A000000")
assert ppd == "/usr/share/cups/model/br7030.ppd"
assert ppd == "/usr/share/ppd/cupsfilters/pxlmono.ppd"


def test_install_printer_ppd_error_no_driver(mocker):
Expand Down