Skip to content

Display IPP-over-USB printers with locally connected devices - #460

Draft
SinghCod3r wants to merge 4 commits into
masterfrom
fix-ipp-over-usb-classification
Draft

Display IPP-over-USB printers with locally connected devices#460
SinghCod3r wants to merge 4 commits into
masterfrom
fix-ipp-over-usb-classification

Conversation

@SinghCod3r

Copy link
Copy Markdown
Collaborator

Description

IPP-over-USB printers discovered through DNS-SD can currently be classified as
network printers in the New Printer dialog.

This change identifies IPP-over-USB devices using their DNS-SD IPP URI together
with their loopback address, while keeping normal LAN IPP printers classified
as network printers.

The New Printer dialog now presents IPP-over-USB devices as local printers.

Changes

  • Restrict IPP-over-USB detection to IPv4/IPv6 loopback addresses.
  • Keep normal LAN IPP printers unaffected.
  • Display IPP-over-USB devices under Local Printers instead of Network Printers.
  • Preserve selection/scroll behavior for discovered IPP-over-USB printers.
  • Add tests for IPv4 loopback, IPv6 loopback, LAN IPP, and non-IPP URIs.

Testing

  • pytest -q test_dnssdresolve.py — 14 passed
  • pytest -q test_PhysicalDevice.py — 2 passed
  • git diff --check — passed

The full test suite currently reports 16 passed and 1 unrelated failure in
test_ppds.py::test_ppds involving existing PPD ID matching tests.

I do not currently have a Xerox B235 available for physical hardware
validation.

@SinghCod3r

Copy link
Copy Markdown
Collaborator Author

@alexpevzner , also added the Search Printer in ui too.

@alexpevzner alexpevzner self-assigned this Sep 6, 2026
This replaces the transient 'Searching for printers...' tree view row with a centered Gtk.Spinner inside a Gtk.Overlay. It also preserves the minimum 0.5s visibility time. Additionally, this stops the global bottom-left spinner from spinning concurrently during the discovery phase.
@SinghCod3r SinghCod3r changed the title Fix IPP-over-USB printer classification Display IPP-over-USB printers with locally connected devices Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants