Bug 2123634

Summary: Chromium does not support CUPS temporary queues
Product: [Fedora] Fedora Reporter: Zdenek Dohnal <zdohnal>
Component: chromiumAssignee: Tom "spot" Callaway <spotrh>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: spotrh, than, tpopela, yaneti
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-14 10:53:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Chromium print dialog screenshot none

Description Zdenek Dohnal 2022-09-02 08:48:46 UTC
Description of problem:
Chromium is not able to use CUPS temporary queue for printing and enforces users to install printers permanently, even for models where it is not needed.
Permanent installation of printers will be removed from CUPS 3.0 (arrives in one/two years), so if chromium is not migrated to the latest (6 years old) CUPS API, its users won't be able to print.

Basically the required change is to use cupsGetDests2() for listing printers and cupsCopyDestInfo() for getting all printer options. 

Version-Release number of selected component (if applicable):
chromium-104.0.5112.101-1.fc38.x86_64

How reproducible:
always

Steps to Reproduce:
0. have a driverless printer or a another machine with running cupsd and sharing queues
1. '$ lpstat -e' shows the temp queue, but '$ lpstat -a' doesn't
2. open print dialog

Actual results:
no temp queue

Expected results:
temp queue is seen and user can print to it

Comment 1 Ben Cotton 2023-02-07 14:54:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Than Ngo 2023-07-14 10:53:24 UTC
it's already supported in latest 114.0.5735.198

Comment 3 Zdenek Dohnal 2023-07-17 07:33:00 UTC
Created attachment 1976125 [details]
Chromium print dialog screenshot

Unfortunately that doesn't seem to be working:

This is the list of available destinations from CUPS:
$ lpstat -e
Canon_MF440_Series
Canon_MF440_Series_USB_1
hp-m277-hplip
hp-test
hp-test/gray
HP_Color_LaserJet_MFP_M277dw_516EE8
test
tpbb-it
tpbc-north
tpbc-south

and the attached screenshot is what Chromium shows under 'See more' when you want to choose a printer in print dialog. The temporary queues - Canon_MF440_Series , Canon_MF440_Series_USB_1 , HP_Color_LaserJet_MFP_M277dw_516EE8 - are not visible in default Chromium print dialog.

Canon printer is connected by USB and by network cable, HP by network cable only.

Version:
$ rpm -q chromium
chromium-114.0.5735.198-1.fc38.x86_64

Comment 4 Zdenek Dohnal 2023-07-17 07:35:38 UTC
The temporary printers are seen if user clicks on 'More settings' and then 'Print using system dialog...', which is written in GTK3 with temporary queue support, but the default Chromium dialog does not support them/show them.