Bug 192748 - [GTK] Printing does not work when running inside Flatpak
Summary: [GTK] Printing does not work when running inside Flatpak
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Georges Basile Stavracas Neto
URL:
Keywords:
: 244332 (view as bug list)
Depends on:
Blocks: Flatpak
  Show dependency treegraph
 
Reported: 2018-12-16 23:53 PST by Adrian Perez
Modified: 2024-04-18 07:41 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2018-12-16 23:53:51 PST
SSIA.
Comment 1 Adrian Perez 2018-12-17 00:00:32 PST
Related: https://bugs.webkit.org/show_bug.cgi?id=79226#c8
Comment 2 Michael Gratton 2019-03-29 22:00:41 PDT
Dupe: https://gitlab.gnome.org/GNOME/geary/issues/348
Comment 3 Michael Catanzaro 2020-10-23 05:58:38 PDT
It has mysteriously begun to work for me....
Comment 4 Michael Gratton 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.
Comment 5 Michael Catanzaro 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 ***
Comment 6 Michael Catanzaro 2022-09-28 12:28:35 PDT
Reopening since bug #202363 was resolved without fixing flatpak.
Comment 7 Michael Catanzaro 2022-09-28 12:28:43 PDT
*** Bug 244332 has been marked as a duplicate of this bug. ***
Comment 8 Milan Crha 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?
Comment 9 Georges Basile Stavracas Neto 2024-04-02 17:55:00 PDT
Pull request: https://github.com/WebKit/WebKit/pull/26765
Comment 10 EWS 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.