Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

[socket] Enable Printing system by default #232

Closed
ovari opened this issue Mar 20, 2022 · 14 comments · Fixed by #237
Closed

[socket] Enable Printing system by default #232

ovari opened this issue Mar 20, 2022 · 14 comments · Fixed by #237

Comments

@ovari
Copy link
Contributor

ovari commented Mar 20, 2022

Please set socket=cups to true. This should enable users to print emails.

What do you think?

Thank you

Image from Flatseal
Flatseal

@elgabo86
Copy link

elgabo86 commented Apr 12, 2022

Firefox have this problem a few months ago but now works but not Thunderbird..

@ovari Does it work for you with socket=cups enabled? It doesn't work for me.
For example, Libreoffice doesn't have this option enabled and printing works..

@elgabo86
Copy link

@Erick555 This commit resolves printing in Firefox and i think Thunderbird needs the same.

@Erick555
Copy link
Collaborator

@elgabo86 does printing work if you switch to system dialog?

For example, Libreoffice doesn't have this option enabled and printing works..

On other hand printing in LO doesn't work for many people out of the box (including myself), see flathub/org.libreoffice.LibreOffice#90 . Printing is complicated issue as there are so many ways to connect to printer (usb, local network, remote network, etc.).

@elgabo86
Copy link

@Erick555 no it doesn't work with the system dialog.

Firefox (default and system dialog) and libreoffice can print with a HP printer on USB and a Brother tested with rj45 and wifi.

@elgabo86
Copy link

elgabo86 commented Apr 12, 2022

When I choose the system dialog in Firefox i've got this : (and works)

firefoxSystemdialog

But with Thunderbird, i've got the portal dialog : (And doesn't work)

thunderbirdSystemdialog

@ovari
Copy link
Contributor Author

ovari commented Apr 12, 2022

Does it work for you with socket=cups enabled? It doesn't work for me.

@elgabo86 Unfortunately it doesn't work here either.

@Erick555
Copy link
Collaborator

@ovari @elgabo86 could you test this version?

@ovari
Copy link
Contributor Author

ovari commented Apr 14, 2022

could you test this version?

$ flatpak install --user https://dl.flathub.org/build-repo/84094/org.mozilla.Thunderbird.flatpakref
The application org.mozilla.Thunderbird depends on runtimes from:
  https://dl.flathub.org/repo/
Configure this as new remote 'flathub' [Y/n]: y
\
org.mozilla.Thunderbird permissions:
    ipc                      network        cups        pcsc                  pulseaudio
    wayland                  x11            dri         file access [1]       dbus access [2]
    bus ownership [3]

    [1] xdg-download, xdg-run/gnupg:ro, ~/.gnupg
    [2] org.a11y.*, org.freedesktop.Notifications
    [3] org.mozilla.thunderbird.*


        ID                                    Branch        Op       Remote                   Download
        ID                                    Branch        Op       Remote                   Download
 1. [✓] org.mozilla.Thunderbird.Locale        test          i        thunderbird-origin        1.7 MB / 40.2 MB
 2. [✓] org.mozilla.Thunderbird               test          i        thunderbird-origin       76.9 MB / 77.0 MB

Warning: Not exporting file org.mozilla.Thunderbird.appdata.xml of unsupported type.
Installation complete.

Testing now, can you please advise the instruction to uninstall?

Thank you

@ovari
Copy link
Contributor Author

ovari commented Apr 14, 2022

@Erick555 how do we open the test version of Thunderbird now that it is installed? Thank you

@elgabo86
Copy link

@Erick555 Sadly this version doesn't work too..

@ovari

flatpak run org.mozilla.Thunderbird --branch=thunderbird-origin to run this version
flatpak uninstall org.mozilla.Thunderbird and select the beta version to remove it

@elgabo86
Copy link

@Erick555 Just in case, I tested Thunderbird from the flatpak fedora repository and printing works.

@ovari
Copy link
Contributor Author

ovari commented Apr 16, 2022

could you test this version?

Yes, tested with Linux Mint 20.3 Cinnamon and successfully printed to both a physical printer and a Virtual PDF printer. Thank you very much.

There were two interesting observations:

  1. The print dialog came up and when Print button was clicked, the System Print Dialog then came up. Is there a way to enable printing without showing the System Print Dialog (unless it is clicked on)?
  2. There were errors shown in the Terminal, output shown below:
$ flatpak run org.mozilla.Thunderbird --branch=thunderbird-origin
Gtk-Message: 10:11:30.115: Failed to load module "xapp-gtk3-module"
IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)


(thunderbird:2): Gtk-WARNING **: 10:11:52.286: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): GLib-GObject-CRITICAL **: 10:11:52.287: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): Gtk-WARNING **: 10:11:52.287: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): Gtk-WARNING **: 10:11:52.292: Unknown paper size iso_a4_210x297mm_borderless

** (thunderbird:2): WARNING **: 10:12:00.016: Couldn't connect to D-Bus system bus, Could not connect: No such file or directory

(thunderbird:2): Gtk-WARNING **: 10:12:20.412: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): GLib-GObject-CRITICAL **: 10:12:20.413: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): Gtk-WARNING **: 10:12:20.413: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): Gtk-WARNING **: 10:12:20.418: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): Gtk-WARNING **: 10:12:34.101: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): GLib-GObject-CRITICAL **: 10:12:34.101: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): Gtk-WARNING **: 10:12:34.101: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): Gtk-WARNING **: 10:12:34.107: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): GLib-GObject-CRITICAL **: 10:12:38.305: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): Gtk-WARNING **: 10:13:09.346: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): GLib-GObject-CRITICAL **: 10:13:09.347: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): Gtk-WARNING **: 10:13:09.347: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): Gtk-WARNING **: 10:13:09.352: Unknown paper size iso_a4_210x297mm_borderless

(thunderbird:2): GLib-GObject-CRITICAL **: 10:13:24.130: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ExpectFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)

IPDL protocol error: Handler returned error code!

###!!! [Parent][DispatchAsyncMessage] Error: PClientManager::Msg_ForgetFutureClientSource Processing error: message was deserialized, but the handler returned false (indicating failure)


(thunderbird:2): GLib-GObject-CRITICAL **: 10:20:12.259: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): GLib-GObject-CRITICAL **: 10:20:55.376: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(thunderbird:2): GLib-GObject-CRITICAL **: 10:21:04.375: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

However, at least it is now possible to print with Thunderbird.

Thank you once again.

@Erick555
Copy link
Collaborator

Erick555 commented May 8, 2022

@Erick555 Sadly this version doesn't work too..

@elgabo86 could you re-check it with recent update. I added some patch that should help.

@elgabo86
Copy link

@Erick555

It now works with the last update. Thank you !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants