Bug 455798 - Network printer missing in the print dialog of KDE apps, while available and working in the system settings and all non-KDE apps
Summary: Network printer missing in the print dialog of KDE apps, while available and ...
Status: RESOLVED UPSTREAM
Alias: None
Product: print-manager
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 22.04.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Nicoletti
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-06-22 17:18 UTC by thebluequasar
Modified: 2022-07-29 06:47 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Printer dialogue (59.41 KB, image/png)
2022-06-30 14:42 UTC, Lars Scheiter
Details
Systemsettings printers (93.41 KB, image/png)
2022-06-30 14:43 UTC, Lars Scheiter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thebluequasar 2022-06-22 17:18:49 UTC
SUMMARY
Network printer missing from the print dialogue of all KDE apps, while available and working in system settings and all non-KDE apps. Using the default driverless module for HP Laserjet Professional (1109w model), cups filters 1.27.4

STEPS TO REPRODUCE
1. Connect to the same network as the printer. Open system settings and go to printers section to make sure the printer is detected (with the default, driverless module) and ready. It's also possible to confirm this from the printers plasma applet.
2. Now open a document to print in any of the KDE apps, including Okular, Gwenview, Kolourpaint, digiKam (the ones I personally tested) or any other. Choose print option and look for the network printer in the print dialogue. The printer is missing.
3. To confirm this is an issue related to KDE, open any document in a non-KDE application (I tried LibreOffice, Firefox, GIMP, and QOwnNotes) and select the print option. The printer is  available in those apps and works as expected.

OBSERVED RESULT
KDE apps do not list a network printer that is available and working properly in the print dialog. At the same time, the printer does show up in the printers section of system settings, and all non-KDE apps list it in available printers and can use it without any problems.

EXPECTED RESULT
The list of available printers should be identical in the print dialog of KDE apps to the printers available in system settings and all non-KDE apps running on the same machine.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon User – 5.25
(available in About System)
KDE Plasma Version: 5.25
KDE Frameworks Version: 5.95
Qt Version: 5.15.4
Kernel: 5.13.0-51 generic (64bit)
Printer model: HP Laserjet Professional 1109w – Using the default, automatically configured driver module: driverless, cups filters 1.27.4
Comment 1 Lars Scheiter 2022-06-30 14:42:58 UTC
Created attachment 150291 [details]
Printer dialogue

Screenshot showing only a handfull of printers in the print dialogue
Comment 2 Lars Scheiter 2022-06-30 14:43:01 UTC
Created attachment 150292 [details]
Systemsettings printers

Screenshot showing the systemsettings printers
Comment 3 Lars Scheiter 2022-06-30 14:43:40 UTC
The print dialogue only show printers which are configured in /etc/cups/printers.conf, but no printers which are discovered by cups-browsed.

My printers list:
# lpstat -a
blutdruck accepting requests since Mo 11 Okt 2021 16:59:27 CEST
Drucker_Bueecke_mrbeeg accepting requests since Do 30 Jun 2022 07:26:29 CEST
Drucker_Praxis_mrbeeg accepting requests since Do 30 Jun 2022 07:26:30 CEST
Farblaser_mrbeeg accepting requests since Do 30 Jun 2022 07:26:29 CEST
Kyocera_ECOSYS_M5526cdn accepting requests since Do 30 Jun 2022 07:26:31 CEST
Kyocera_Lars_mrbeeg accepting requests since Do 30 Jun 2022 16:03:03 CEST
nebendruck accepting requests since Mo 11 Okt 2021 16:59:27 CEST
Samsung_CLX_3300_Series_SEC001599AE9E6E_ accepting requests since Do 30 Jun 2022 16:19:38 CEST
Samsung_Lars_mrbeeg accepting requests since Do 30 Jun 2022 07:26:29 CEST
tiefdruck accepting requests since Mo 11 Okt 2021 16:59:27 CEST
turmdruck accepting requests since Mo 11 Okt 2021 16:59:27 CEST
uberdruck accepting requests since Di 14 Jun 2022 09:04:13 CEST
unterdruck accepting requests since Mo 11 Okt 2021 16:59:27 CEST

All the printers discovered by cups have unterlines in their names (eg.: "Kyocera_ECOSYS_M5526cdn"), the others are local configured printers (eg.: unterdruck and uberdruck). The only printers shown are local configured printers (See Screenshot.png). Second screenshot is systemsettings showing all printers.
Comment 4 Stefan 2022-07-03 13:08:39 UTC
Same here with a Brother MFC L3750CDW network printer.
I can't print out of Okular and Kate. My printer is not listed. I can only print to PDF.
It works fine with Firefox or LibreOffice. There my printer is listed and I can print to it without any problems.

Output from lpstat -a (sorry, it's in German):
Brother_MFC_L3750CDW_series akzeptiert Anfragen seit So 03 Jul 2022 14:57:49 CEST
Comment 5 David Redondo 2022-07-10 14:58:21 UTC
Can confirm
Comment 6 Paul Worrall 2022-07-11 14:45:45 UTC
If I keep repeating File=>Print=>Cancel; File=>Print=>Cancel... etc.  sometimes the print dialog shows my network printer but mostly not.
Comment 7 SJM 2022-07-11 15:06:10 UTC
A quick fix is to select "open with -> Other Application -> Remember" this works for all kde neon apps that don't require only the ctrl+p option. works in okular etc. does not work with konqueror (the best and only real browser) etc.

looking around the print option looks like  python. .. if i had to guess it has to do with the update of python --- (it's alway python) . every problem i encounter it's the retched python, time to replace python in my opinion. i could be wrong however.

hope that helps
Comment 8 SJM 2022-07-11 15:11:00 UTC
Also if you use the snap package it downgrades the version of okular and python and okular prints .... i quess one could do that with every pakage (make a list) then change it back when it's fixed
Comment 9 Gerhard 2022-07-18 08:45:36 UTC
can confirm.
openSUSE Tumbleweed 20220714
KDE Plasma 5.23.3
KDE-Frameworks 5.96
KDE-Apps 22.04.3
Qt 5.15.5
Comment 10 Adam Pigg 2022-07-21 20:24:07 UTC
Also confirmed on opensuse tumbleweed, and a canon mg5700.  I never had to add this printer locally as it just worked, but since an update, it hasnt worked in the last month.  I added it to the local cups system, and its still not listed in kde apps.  Listed fine in firefox.
Comment 11 David Redondo 2022-07-28 13:37:39 UTC
I think this is the culprit https://codereview.qt-project.org/c/qt/qtbase/+/403487
Comment 12 David Redondo 2022-07-28 13:49:44 UTC
I've filed https://bugreports.qt.io/browse/QTBUG-105242