You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
"lpoptions -l" for instance displays values from main instance #4717
The section on printer instances in the CUPS documentation (section "Creating Saved Options" in [1]) says:
"Instances do not inherit lpoptions from the main queue."
I tried sending a print job to the instance and as far as I can see, the values specified for the main queue are not applied (which is the expected behaviour).
However, the output of lpoptions -p <printername>/<instancename> -l does show values set for the main queue for the instance as well. If I understand the documentation correctly, this is incorrect.
Steps to reproduce (I ran them on Debian GNU/Linux):
set up a printer with the attached PPD file, e.g. print to a file (cups-files.conf must contain "FileDevice Yes" in that case).
sudo lpadmin -p testprinter -v file:$HOME/tofile-testprinter -E -P Ricoh-MP_C3503-pxlcolor-Ricoh.ppd
create a printer instance "testprinter/myinstance":
lpoptions -p testprinter/myinstance -o Resolution=1200dpi
check value of PageSize returned from "lpoptions" for the instance:
lpoptions -p testprinter/myinstance -l | grep PageSize
The PageSize is "A3" as specified for the main instance "testprinter".
Expected behaviour:
The value for the "PageSize" option for the printer instance "testprinter/myinstance" should not be affected by the main instance "testprinter" and should therefore still be "Letter".
I have tested this on Debian 8 ("jessie") with the preinstalled CUPS version (1.7.5) and on Debian unstable with version 2.1.0.
Activity
michaelrsweet commentedon Sep 15, 2015
CUPS.org User: michaelweghorn
This is the file ~/.cups/lpoptions after running the mentioned commands.
michaelrsweet commentedon Sep 15, 2015
CUPS.org User: michaelweghorn
The file ~/.cups/lpoptions contains the following after running the mentioned commands:
Dest testprinter PageSize=A3
Dest testprinter/myinstance Resolution=1200dpi
michaelrsweet commentedon Sep 16, 2015
CUPS.org User: mike
Investigating, this might be over-optimization of the option storage code.
Fix writing of default options (Issue #4717)
michaelrsweet commentedon Dec 5, 2017
[master 42a5ae2] Fix writing of default options (Issue #4717)
Backport CUPS 2.3.x changes to 2.2.x (Issue #5255)