Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
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

Closed

Description

@michaelrsweet

Version: 2.1.0
CUPS.org User: michaelweghorn

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):

  1. 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

  2. create a printer instance "testprinter/myinstance":
    lpoptions -p testprinter/myinstance -o Resolution=1200dpi

  3. check value of PageSize returned from "lpoptions" for the instance:
    lpoptions -p testprinter/myinstance -l | grep PageSize

output:
PageSize/PageSize: A3 A4 A5 A6 B4 B5 B6 Legal GovernmentLG EngQuatro *Letter Statement F Folio FanFoldGermanLegal Tabloid 12x18 11x15 10x14 SRA3 SRA4 Executive Env10 EnvMonarch EnvC5 EnvC6 DLEnv 8Kai 16Kai

The PageSize is "Letter" as specified in the PPD file (as expected).

  1. change PageSize for the main queue:
    lpoptions -p testprinter -o PageSize=A3

  2. check value of PageSize returned from "lpoptions" for the instance:
    lpoptions -p testprinter/myinstance -l | grep PageSize

output:
PageSize/PageSize: *A3 A4 A5 A6 B4 B5 B6 Legal GovernmentLG EngQuatro Letter Statement F Folio FanFoldGermanLegal Tabloid 12x18 11x15 10x14 SRA3 SRA4 Executive Env10 EnvMonarch EnvC5 EnvC6 DLEnv 8Kai 16Kai

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.

[1] http://cups.org/documentation.php/doc-2.1/options.html

Activity

  1. michaelrsweet commented on Sep 15, 2015

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: michaelweghorn

    This is the file ~/.cups/lpoptions after running the mentioned commands.

  2. michaelrsweet commented on Sep 15, 2015

    @michaelrsweet
    ContributorAuthor

    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

  3. michaelrsweet commented on Sep 16, 2015

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Investigating, this might be over-optimization of the option storage code.

  4. added this to the Stable milestone on Mar 17, 2016
  5. modified the milestones: Future, Stable on May 11, 2016
  6. modified the milestones: , Future on Jun 30, 2017
  7. michaelrsweet commented on Dec 5, 2017

    @michaelrsweet
    ContributorAuthor

    [master 42a5ae2] Fix writing of default options (Issue #4717)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions