Repository navigation
Validate driverless capability and fall back to manual driver selection - #469
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test whether a printer's advertised driverless IPP support actually works before using the driverless mode.
If the driverless PPD can be successfully generated and opened, the printer continues through the driverless setup path. If the driverless PPD cannot be used, system-config-printer abandons driverless mode and falls back to the legacy driver-selection workflow.
This handles printers that advertise driverless support but have broken or incompatible driverless implementations.
What changed
driverless:PPD from being selected again;IPPandIPP over USBin the Connection section using the existingdnssdresolve.is_ipp_over_usb_device()helper.Testing
Broken Xerox B235
Verified with the Broken Xerox B235 simulator that:
Working driverless printer
Verified that a printer with a valid driverless PPD continues through the driverless setup path.
Automated tests
python3 -m pytest test_newprinter.py— 34 passedpython3 -m pytest test_newprinter.py test_dnssdresolve.py test_PhysicalDevice.py— 50 passedgit diff --check— cleanFuture work
Optimizing the successful driverless path to avoid unnecessary PPD catalog loading can be addressed separately.