[Bug 231110] GTK print dialogs falsely believe lpr cannot accept PDF

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 3 00:22:31 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231110

            Bug ID: 231110
           Summary: GTK print dialogs falsely believe lpr cannot accept
                    PDF
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: george at m5p.com
                CC: gecko at FreeBSD.org, gnome at FreeBSD.org

Created attachment 196805
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196805&action=edit
Patch to tell GTK that lpr accepts PDF output

The LPR backend for GTK asserts that "lpr" cannot accept PDF files.  Granted,
you can't tell in general whether lpr in a given situation will be able to
print a PDF or not, but declaring that it can't is needlessly restrictive.  The
attached patch (works for both GTK2 and GTK3) adds the "accepts-pdf" property
to the lpr backend and fixes the problem.

This patch is suggested as an alternative to the patch from the freebsd-gecko
email thread "firefox-60.0_2,1 missing 'Print to LPR'", from May 13, 2018,
which circumvents the problem by generating PostScript output instead of PDF. 
Fixing the problem in GTK means that other users of GTK won't have to create
parallel workarounds.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-gecko mailing list