Bug 202363 - [GTK] Printing not working with bubblewrap sandbox enabled
Summary: [GTK] Printing not working with bubblewrap sandbox enabled
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
Depends on:
Blocks: 206533
  Show dependency treegraph
Reported: 2019-09-30 06:59 PDT by Master One
Modified: 2020-11-19 01:54 PST (History)
9 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Master One 2019-09-30 06:59:51 PDT
This bug was originally posted as https://gitlab.gnome.org/GNOME/epiphany/issues/957 but I was advised to put this here.

On a fresh installation of Arch Linux with Gnome 3.34.0 I can not make Epiphany to print anything. Printers are setup correctly and work from other applications. I have attached 3 screenshots:

When I press Ctrl-p or select printing from the menu, the Gnome print dialog comes up as expected.


When I select a printer (in my case "netbrother" or PDF) and click Print, the print dialog disappears and the error message "Printer not found" is shown.


When I select "Print to File" and click Print, the print dialog disappears and the error "No such file or directory" is shown.

Comment 1 Carlos Garcia Campos 2019-10-01 01:14:02 PDT
Does this happen with sandboxing disabled?
Comment 2 Michael Catanzaro 2019-10-01 02:36:24 PDT
It works with WEBKIT_FORCE_SANDBOX=0, so I guess it's trying to print from the web process? That's weird.

Would be good to fix bug #192748 at the same time. Switching WebKitPrintOperation to use either GtkPrintOperation or the printing portal directly should suffice for both bugs.
Comment 3 Carlos Garcia Campos 2020-06-22 23:14:21 PDT
The dialog runs in the UI process, and the generated settings are sent to the web process. In the web process we use GtkPrintJob, which requires a GtkPrinter object, so we also use gtk_enumerate_printers() to find the selected printer. I guess gtk_enumerate_printers it's failing, that's why the error is printer not found. GtkPrintJob will probably fail too if we get the printer, though.
Comment 4 dan 2020-11-12 07:07:49 PST
This is a problem for Evolution in Fedora 33.  Users are unable to print an email from within Evolution.

As a workaround, starting Evolution with:


permits the behavior.
Comment 5 Markus Pohle 2020-11-19 01:54:34 PST
can confirm that this workaround works for fedora 33 users to make evolution print again

will this bug be solved in the near future?