+
Skip to content

Conversation

jjkeijser
Copy link

Add support for filtering the list of printers on the client side

When a cups server has hundreds of printers defined, each client-side operation becomes very slow, as the full list of printers is queried from the server for almost every operation. Also, the list of printers presented to the user becomes far too long, e.g. in GUI-based programs such as LibreOffice.

With this patch, a user can list a set of printers that {s}he wants to queried. This list can be specified using either an environment variable
export CUPS_PRINTER_LIST="printer1, printer2, printer3"
or by adding a line to the ~/.cups/lpoptions file
printer-list printer1, printer2, printer3

Please note that the list of printers can either be comma-separated or space-separated.

Signed-off-by: Jan Just Keijser <jan.just.keijser@gmail.com>
Signed-off-by: Jan Just Keijser <jan.just.keijser@gmail.com>
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.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载