Skip to content

Add destination filter options to client.conf #106

@michaelrsweet

Description

@michaelrsweet

Add support for destination filtering options in client.conf, specifically:

# Browse local (mDNS) and registered domains (default)
BrowseDomains all

# Don't browse for printers via DNS-SD at all
BrowseDomains none

# Browse local (mDNS) domain only
BrowseDomains .local

# Browse named domains only
BrowseDomains .local,.example.com
BrowseDomains .foo.example.com,.bar.example.com

# Show all printers regardless of location
FilterLocation none

# Only show printers with matching location(s)
FilterLocation "Room 1"
FilterLocation "Room 1", "Room 2"
FilterLocation /^Room [1-2]$/

# Filter printers based on type(s)
FilterType any
FilterType mono
FilterType color
FilterType duplex
FilterType small
FilterType medium
FilterType large
FilterType duplex,color

These should automatically apply on top of the filtering offered by cupsEnumDests and friends. The filters apply to all destinations (even printers that are added locally) while the BrowseDomains setting only applies to DNS-SD lookups.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions