Flatpak firefox does not see printers

Firefox 119 flatpak from flathub and Firefox 118.02 flatpak from fedora:
The print dialog only shows print to pdf, opening up the system dialog showed print to file and print to lpr

My printer shows up under gnome-control center → printers.

Firefox 119 from flathub:
Adding the D-Bus System Bus permissions for firefox shows the printer in the system dialog box. After it finishes retrieving the printer information the printer is selectable from the initial printer dialog box.

Firefox 118.02 from fedora:
Adding the D-Bus System Bus permissions for firefox shows the printer in the initial printer dialog box.

flatpak run --command=sh org.mozilla.firefox  
[📦 org.mozilla.firefox ~]$ firefox
[Parent 3, Main Thread] WARNING: g_object_ref: assertion 'G_IS_OBJECT (object)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:3): GLib-GObject-CRITICAL **: 10:41:26.285: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
[Child 272, Main Thread] WARNING: Failed to create file monitor for /home/grumpey/.var/app/org.mozilla.firefox/config/glib-2.0/settings/keyfile: Unable to find default local file monitor type: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(/app/lib/firefox/firefox-bin:272): GLib-GIO-WARNING **: 10:41:26.316: Failed to create file monitor for /home/grumpey/.var/app/org.mozilla.firefox/config/glib-2.0/settings/keyfile: Unable to find default local file monitor type

** (firefox:3): WARNING **: 10:41:29.056: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

** (firefox:3): WARNING **: 10:41:29.056: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

After permissions are granted:

[📦 org.mozilla.firefox ~]$ firefox
[Parent 1036, Main Thread] WARNING: g_object_ref: assertion 'G_IS_OBJECT (object)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:1036): GLib-GObject-CRITICAL **: 11:04:56.635: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
[Child 1263, Main Thread] WARNING: Failed to create file monitor for /home/grumpey/.var/app/org.mozilla.firefox/config/glib-2.0/settings/keyfile: Unable to find default local file monitor type: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(/app/lib/firefox/firefox-bin:1263): GLib-GIO-WARNING **: 11:04:56.667: Failed to create file monitor for /home/grumpey/.var/app/org.mozilla.firefox/config/glib-2.0/settings/keyfile: Unable to find default local file monitor type
[📦 org.mozilla.firefox ~]$ firefox
[Parent 1440, Main Thread] WARNING: g_object_ref: assertion 'G_IS_OBJECT (object)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:1440): GLib-GObject-CRITICAL **: 11:05:46.632: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
[Child 1666, Main Thread] WARNING: Failed to create file monitor for /home/grumpey/.var/app/org.mozilla.firefox/config/glib-2.0/settings/keyfile: Unable to find default local file monitor type: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(/app/lib/firefox/firefox-bin:1666): GLib-GIO-WARNING **: 11:05:46.663: Failed to create file monitor for /home/grumpey/.var/app/org.mozilla.firefox/config/glib-2.0/settings/keyfile: Unable to find default local file monitor type

Anyone seeing something similar?

Thanks

I see the same terminal output when opening the print dialog in 119.0 from Flathub, but printing still works.

Firefox should be using the Print portal (via GTK3 I guess).

Side note, I like how discourse overrides ctrl+p, which is then blocked by Firefox’s popup blocker.

1 Like

After adding the printer a second time using the “driverless” option it shows up without any permission modifications.

So now I have two of the same printer:
HP_Officejet_Pro_9010_series_E79E44
and
HP-Officejet-Pro-9010

When I look at the add printer dialog the E79E44 is listed as:
HP Officejet Pro 9010 series [E79E44._ipps._tcp.local