Commit 9afc7370 authored by Guillaume Girol's avatar Guillaume Girol
Browse files

nixos/printing: fix printing from cups-browsed (eg, from ipp-usb)

When cups-browsed was separated from cups in f1f9a540
the implicitclass backend ($out/lib/cups/backend/implicitclass) was
moved from cups-filters to cups-browsed. When ipp-usb advertises a
printer, cups-browsed configures cups to add an implicitclass://...
printer and cups fails to find the corresponding backend:

cups.service cupsd[788465] DEBUG Canon_TR4500_series_USB device-uri: Unknown scheme in URI
cups.service cupsd[788465] DEBUG CUPS-Add-Modify-Printer client-error-not-possible: Bad device-uri scheme "implicitclass".
cups.service cupsd[788465] ERROR [Client 6] Returning IPP client-error-not-possible for CUPS-Add-Modify-Printer (ipp://localhost/printers/Canon_TR4500_series_USB) from localhost

This commit adds cups-browsed to the packages that compose the ServerBin
option of cups-files.conf so that cups can find the implicitclass
backend.
parent 1e099660
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ let
      cups-filters
      pkgs.ghostscript
    ]
    ++ lib.optional cfg.browsed.enable cfg.browsed.package
    ++ cfg.drivers;
    pathsToLink = [
      "/lib"