[Pkg-chromium-maint] Bug#717722: chromium: Unable to print with lpr gtk-print-backend set

Salvatore Bonaccorso bonaccos at ee.ethz.ch
Wed Jul 24 09:20:36 UTC 2013


Package: chromium
Version: 28.0.1500.71-1~deb7u1
Severity: normal

Hi

We need to set

        gtk-print-backends = lpr,file

in our environment (we need to print over lpr). Opening the print
dialog with CTRL+p only shows print to file and on the terminal I see:

[10753:10753:0723/141229:ERROR:browser_main_loop.cc(186)] Gtk: IA__gtk_printer_is_accepting_jobs: assertion `GTK_IS_PRINTER (printer)' failed

This is similar to [1].

 [1] https://code.google.com/p/chromium/issues/detail?id=181525

The required capability for lpr backend should be the postscript
capability, so GTK_PRINT_CAPABILITY_GENERATE_PS is missing:

241   // Since we only generate PDF, only show printers that support PDF.
242   // TODO(thestig) Add more capabilities to support?
243   GtkPrintCapabilities cap = static_cast<GtkPrintCapabilities>(
244       GTK_PRINT_CAPABILITY_GENERATE_PDF |
245       GTK_PRINT_CAPABILITY_PAGE_SET |
246       GTK_PRINT_CAPABILITY_COPIES |
247       GTK_PRINT_CAPABILITY_COLLATE |
248       GTK_PRINT_CAPABILITY_REVERSE);

The attached patch adds GTK_PRINT_CAPABILITY_GENERATE_PS to supported
capabilities.

Without GTK_PRINT_CAPABILITY_GENERATE_PS "print to lpr" does not show
in the printer dialog.

For many devices that support ps and pdf over the lp protocol printing
is not possible in the current version.

This happens under Wheezy (but worked under GTK and chromium-browser
under Squeeze).

Regards,
Salvatore

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages chromium depends on:
ii  chromium-inspector  28.0.1500.71-1~deb7u1
ii  gconf-service       3.2.5-1+build1
ii  libasound2          1.0.25-4
ii  libatk1.0-0         2.4.0-2
ii  libc6               2.13-38
ii  libcairo2           1.12.2-3
ii  libcups2            1.5.3-5
ii  libdbus-1-3         1.6.8-1+deb7u1
ii  libexpat1           2.1.0-1
ii  libfontconfig1      2.9.0-7.1
ii  libfreetype6        2.4.9-1.1
ii  libgcc1             1:4.7.2-5
ii  libgconf-2-4        3.2.5-1+build1
ii  libgcrypt11         1.5.0-5
ii  libgdk-pixbuf2.0-0  2.26.1-1
ii  libglib2.0-0        2.33.12+really2.32.4-5
ii  libgnome-keyring0   3.4.1-1
ii  libgtk2.0-0         2.24.10-2
ii  libjpeg8            8d-1
ii  libnspr4            2:4.9.2-1
ii  libnss3             2:3.14.3-1
ii  libnss3-1d          2:3.14.3-1
ii  libpango1.0-0       1.30.0-1
ii  libspeechd2         0.7.1-6.2
ii  libstdc++6          4.7.2-5
ii  libudev0            175-7.2
ii  libx11-6            2:1.5.0-1+deb7u1
ii  libxcomposite1      1:0.4.3-2
ii  libxdamage1         1:1.1.3-2
ii  libxext6            2:1.3.1-2+deb7u1
ii  libxfixes3          1:5.0-4+deb7u1
ii  libxml2             2.8.0+dfsg1-7+nmu1
ii  libxrandr2          2:1.3.2-2+deb7u1
ii  libxrender1         1:0.9.7-1+deb7u1
ii  libxslt1.1          1.1.26-14.1
ii  libxss1             1:1.2.2-1
ii  xdg-utils           1.1.0~rc1+git20111210-6

chromium recommends no packages.

Versions of packages chromium suggests:
pn  chromium-l10n  <none>

-- Configuration Files:
/etc/chromium/default changed [not included]

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lprprint.patch
Type: text/x-diff
Size: 479 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-chromium-maint/attachments/20130724/4c037fce/attachment.patch>


More information about the Pkg-chromium-maint mailing list