Closed Bug 1773316 Opened 3 years ago Closed 2 years ago

Can't see my printer with firefox 101 on Ubuntu 22.04 (snap)

Categories

(Firefox Build System :: Third Party Packaging, defect, P4)

Firefox 101
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: christophe, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0

Steps to reproduce:

Try printing a web page with firefox 101 on Ubuntu 22.04 (snap)

Actual results:

My printer is not visible (or selectable). I can only send data to lpr or write it in a pdf file.

Expected results:

I should be able to select my printer and print directly to my printer.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

The problem was fixed and the bug report may be closed.

After the upgrade to Ubuntu 22.04, firefox was installed as snap. I wasn't aware that configuration options were available for firefox in the system parameters in the application list.

The option print documents was set to a dash which implies that cups is not accessible I guess. By selecting "cups:cups-server" i could then see my printers with firefox. Problem solved.

(In reply to Christophe Meessen from comment #2)

The problem was fixed and the bug report may be closed.

After the upgrade to Ubuntu 22.04, firefox was installed as snap. I wasn't aware that configuration options were available for firefox in the system parameters in the application list.

The option print documents was set to a dash which implies that cups is not accessible I guess. By selecting "cups:cups-server" i could then see my printers with firefox. Problem solved.

Can you clarify a little bit?

You were using deb package on previous Ubuntu release, got upgraded to the Snap with 22.04, right?

What I can't exactly understand is:

The option print documents was set to a dash

Can you explicit that? Screenshot?

Flags: needinfo?(christophe)

This is a screen capture of the main gnome control panel (sorry it's in french). You will see the dash. It's a popup menu. I had to select "cups:cups-server". The other menu option is "snapd:cups-control" which I didn't tested.

https://www.dropbox.com/s/t9yvmvei07u2f5j/Capture%20d%E2%80%99%C3%A9cran%20du%202022-06-25%2010-54-38.png?dl=0

Flags: needinfo?(christophe)

(In reply to Christophe Meessen from comment #4)

This is a screen capture of the main gnome control panel (sorry it's in french). You will see the dash. It's a popup menu. I had to select "cups:cups-server". The other menu option is "snapd:cups-control" which I didn't tested.

https://www.dropbox.com/s/t9yvmvei07u2f5j/Capture%20d%E2%80%99%C3%A9cran%20du%202022-06-25%2010-54-38.png?dl=0

Ah, this is the control you were mentionning. French is fine, I'm french as well.

Olivier, this looks like a GNOME/Snap side issue ? Migration-related maybe ?

Flags: needinfo?(olivier)

This is unexpected. The cups-control interface is auto-connected for firefox, so it should have been enabled by default.

Flags: needinfo?(olivier)

It looks like the same issue is on my system, probably since today or yesterday, as I print from Firefox every day (so, pretty critical for me).
Only "Save to PDF" is visible as destination on Print pop-up.
If clicking the "Print using the system dialog...", still no printer is visible, while the only option are "Print to file" and "Print to LPR".
Printer is visible and working from Okular.

Firefox 104 (Snap)
Build ID 20220823071005
Distribution ID canonical-002

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-46-generic (64-bit)
Graphics Platform: X11
Processors: 4 × AMD A8-6500T APU with Radeon(tm) HD Graphics
Memory: 7.0 GiB of RAM
Graphics Processor: AMD ARUBA

As I am on KDE, is it still the same issue?

Flags: needinfo?(olivier)

Update - it's a permission issue, although do not know why and when it changed:
Discover -> Firefox -> Configure permissions -> 2 options "cups-control" were not enabled. After enabling them both, my printer is back.
Maybe the fact that there are 2 same options of "cups-control" is the hint for resolving this issue?

That looks like the same issue. Just to confirm, this was working for you when using firefox 103, and with the update to firefox 104 it was broken?

Can you share the output of snap changes --abs-time ?

Flags: needinfo?(olivier) → needinfo?(boaz.dodin)

103 (and several earlier snap releases) - OK.
104 - as I am on candidate channel, about 3 rc updates were applied. The issue noticed only today.

snap changes --abs-time
ID Status Spawn Ready Summary
197 Done 2022-08-25T09:35:00+03:00 2022-08-25T09:35:06+03:00 Connect firefox:cups-control to snapd:cups-control
198 Done 2022-08-25T09:35:08+03:00 2022-08-25T09:35:20+03:00 Connect firefox:cups-control to cups:cups-server

Flags: needinfo?(boaz.dodin)

The problem of cups-control not connected to the snap happened on 105.0b9 as well, same symptoms as above.
Printers were displayed in the print dialogue once I had connected the cups-control.

(In reply to Kevin Frost from comment #12)

The problem of cups-control not connected to the snap happened on 105.0b9 as well, same symptoms as above.
Printers were displayed in the print dialogue once I had connected the cups-control.

Kevin, does it means you had printers working and then during 105.0b9 it disconnected the snap plug and you lost printers ?

Have you kept snap changes --abs-time output somewhere ?

Flags: needinfo?(kevin)
Severity: -- → S2
Component: Widget: Gtk → Third Party Packaging
Priority: -- → P4
Product: Core → Firefox Build System

(In reply to Alexandre LISSY :gerard-majax from comment #13)

(In reply to Kevin Frost from comment #12)

The problem of cups-control not connected to the snap happened on 105.0b9 as well, same symptoms as above.
Printers were displayed in the print dialogue once I had connected the cups-control.

Kevin, does it means you had printers working and then during 105.0b9 it disconnected the snap plug and you lost printers ?

Have you kept snap changes --abs-time output somewhere ?

Hello
Unfortunately I don't have any of the snap changes output at all, but I have now upgraded to Firefox 106.0b9 snap and the problem has not manifested itself for a while now - all the printers are there as expected as I type.
I'm sorry that I didn't update the bug with the new info.
Kevin

Flags: needinfo?(kevin)

(In reply to Alexandre LISSY :gerard-majax from comment #13)

(In reply to Kevin Frost from comment #12)

The problem of cups-control not connected to the snap happened on 105.0b9 as well, same symptoms as above.
Printers were displayed in the print dialogue once I had connected the cups-control.

Kevin, does it means you had printers working and then during 105.0b9 it disconnected the snap plug and you lost printers ?

Have you kept snap changes --abs-time output somewhere ?

Forget everything I said!
I found that listing the connections with snap connections, the cups-control was set to manual:
cups-control firefox:cups-control :cups-control manual
cups-control firefox:cups-control cups:cups-server manual

I then removed the firefox snap after backing up the common directory and reinstalled the beta firefox (106.b9). The snap connections command was done again on the new install and got the following:
cups-control firefox:cups-control -
And no printers saved the "save to pdf" were available. It seems that the problem still exists, at least for 106.b9 version.

Hope that this helps.

Olivier, is the automatic connection tied somehow to the Snap Store ?

Flags: needinfo?(olivier)

Redirecting needinfo to amin

Flags: needinfo?(olivier) → needinfo?(bandali)

I think we should just close this, but at least it documents that there might be migration issues and one should control this in case the problem reproduces elsewhere.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(bandali)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: