Bug 2123634 - Chromium does not support CUPS temporary queues
Summary: Chromium does not support CUPS temporary queues
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: chromium
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-02 08:48 UTC by Zdenek Dohnal
Modified: 2023-07-17 07:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-14 10:53:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Chromium print dialog screenshot (27.91 KB, image/png)
2023-07-17 07:33 UTC, Zdenek Dohnal
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.