diff --git a/archinstall/applications/print_service.py b/archinstall/applications/print_service.py index fbe28f89..6e4c21a4 100644 --- a/archinstall/applications/print_service.py +++ b/archinstall/applications/print_service.py @@ -9,7 +9,7 @@ if TYPE_CHECKING: class PrintServiceApp: @property def packages(self) -> list[str]: - return ['cups', 'system-config-printer', 'cups-pk-helper'] + return ['cups', 'system-config-printer', 'cups-pk-helper', 'ghostscript'] @property def services(self) -> list[str]: diff --git a/tests/test_applications.py b/tests/test_applications.py new file mode 100644 index 00000000..9ddb87ff --- /dev/null +++ b/tests/test_applications.py @@ -0,0 +1,7 @@ +from archinstall.applications.print_service import PrintServiceApp + + +def test_print_service_includes_ghostscript() -> None: + # cups only ships the PDF/PostScript rendering filter through ghostscript, + # so driverless (IPP Everywhere) printing fails without it. + assert 'ghostscript' in PrintServiceApp().packages