Bug 450154

Summary: LPD printer discovered but address/queue fields are empty
Product: [Frameworks and Libraries] print-manager Reporter: dx4uul3u6
Component: generalAssignee: Daniel Nicoletti <dantti12>
Status: RESOLVED FIXED    
Severity: normal CC: c3i8zv295
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.1

Description dx4uul3u6 2022-02-13 12:57:12 UTC
SUMMARY
I have a network printer that `lpinfo -v` can discover as an lpd printer. When I try to add that printer through system settings -> add printer, it does show up as a discovered network printer, but when I then click on that printer both the address and queue input fields are empty. I would have expected those to be filled in with the details from the discovery.

STEPS TO REPRODUCE
1. Open System Settings
2. Go to Hardware -> Printers
3. Click on Add Printer
4. Click on the printer under "Discovered Network Printers", make sure this is a lpd printer

OBSERVED RESULT
The right side of the "Add Printer" dialog shows empty input boxes for both "Address" and "Queue".

EXPECTED RESULT
The "Address" and "Queue" input boxes to contain the values that have been discovered.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.24.0 (but also existed on earlier versions)
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
After I manually set the address in the input box, the "Next" button was still disabled, however if you click on any other item on the list and then going back to the network printer the "Next" button becomes enabled.
Also, it seems that the queue field isn't being used. I had to enter the address as 'printer/queue' and left the queue empty for the url to be correct. When I entered the printer name in address, and the queue name in queue the printer that was added did not have the queue in it's connection.
When you prepend the address with `lpd://` it shows as if all is well but after you click "Finish" no printer was added and no error was shown.
Comment 1 Julius R. 2022-12-05 08:28:20 UTC
I can confirm this behaviour. Yet again, another function broken that once worked. ;(
Manjaro, 6.0.8-1 Kernel, Plasma 5.26.3
Comment 2 Julius R. 2022-12-14 14:08:35 UTC
My guess is, that this is DNSSD related...
Comment 3 Mike 2024-04-25 20:16:55 UTC
Git commit 44cb896226a0b74aacef2868c4e01f8b208ab94d by Mike Noe.
Committed on 25/04/2024 at 20:13.
Pushed by noee into branch 'master'.

kcm/qml: Add LPD device setup component

This device support is brought forward from the legacy add-printer app.
Related: bug 459058, bug 403189
FIXED-IN: 6.1

M  +3    -1    src/kcm/ui/FindPrinter.qml
A  +95   -0    src/kcm/ui/components/Lpd.qml     [License: GPL(v2.0+)]

https://invent.kde.org/plasma/print-manager/-/commit/44cb896226a0b74aacef2868c4e01f8b208ab94d