Bug 192748

Summary: [GTK] Printing does not work when running inside Flatpak
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WebKitGTKAssignee: Georges Basile Stavracas Neto <feaneron>
Status: RESOLVED FIXED    
Severity: Normal CC: braden, bugs-noreply, calvaris, cgarcia, leonardougerage, mcatanzaro, mcrha, mike, robert
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=180813
https://bugs.webkit.org/show_bug.cgi?id=212079
Bug Depends on:    
Bug Blocks: 218121    

Adrian Perez
Reported 2018-12-16 23:53:51 PST
SSIA.
Attachments
Adrian Perez
Comment 1 2018-12-17 00:00:32 PST
Michael Gratton
Comment 2 2019-03-29 22:00:41 PDT
Michael Catanzaro
Comment 3 2020-10-23 05:58:38 PDT
It has mysteriously begun to work for me....
Michael Gratton
Comment 4 2021-01-17 01:53:22 PST
Per https://github.com/flathub/org.gnome.Geary/issues/42 a workaround for this is adding explicit RW access to `~/Downloads` or similar, so at least people can print to PDF and print that using Evince or whatever.
Michael Catanzaro
Comment 5 2021-06-30 08:05:15 PDT
Let's track this in bug #202363. *** This bug has been marked as a duplicate of bug 202363 ***
Michael Catanzaro
Comment 6 2022-09-28 12:28:35 PDT
Reopening since bug #202363 was resolved without fixing flatpak.
Michael Catanzaro
Comment 7 2022-09-28 12:28:43 PDT
*** Bug 244332 has been marked as a duplicate of this bug. ***
Milan Crha
Comment 8 2024-01-08 23:12:00 PST
I can "Print to file" under Flatpak, but the file chooser does not let me pick host-system directories, while running the same dialog as gtk3 wants makes it work properly. Steps, in Evolution: 1) go to the Mail view and select a mail message 2) press Ctrl+P and there select "Print to File" 3) click the button with the file name, file chooser dialog opens Actual Result: No host-system directories shown Expected: Host-system directories are shown 4) go to the Contacts view and select a contact there 5) press Ctrl+P and there select "Print to File" 6) click the button with the file name, file chooser dialog opens Actual and Expected Result: Host-system directories are shown That makes me believe something in the WebKitGTK is broken, even though the GtkPrintUnixDialog is used in the both above cases. One thing to note, at least to what I see, the gtk+ uses GtkFileChooserDialog for here, while it may rather use GtkFileChooserNative, to work under Flatpak sandbox, I guess. It's weird to see bad and then correct directories in the dialog. I mean, I'd say the problem is on the gtk3 side, but if calling the dialog in the evo process works, then the problem is possibly somewhere in the WebKitGTK. Does the WebKitGTK's print dialog run in the WebKitWebProcess, thus possibly under the WebKitGTK's own sandbox?
Georges Basile Stavracas Neto
Comment 9 2024-04-02 17:55:00 PDT
EWS
Comment 10 2024-04-18 07:41:02 PDT
Committed 277671@main (fd47d132791d): <https://commits.webkit.org/277671@main> Reviewed commits have been landed. Closing PR #26765 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.