Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set xxx-default values for temporary queues using lpadmin #237

Closed
zdohnal opened this issue Sep 1, 2021 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request priority-low
Milestone

Comments

@zdohnal
Copy link
Member

zdohnal commented Sep 1, 2021

Found out during OpenPrinting/cups-local#2 .

The temporary queue is shown via lpstat -e and not via lpstat -a. But once an user wants to change its job default options (shown by lpoptions -p <queue>), the temporary queue is shown in lpstat -a output with /dev/null device uri and the option isn't applied according lpoptions -p <queue> output.

How to produce:

$ lpadmin -p <temp_queue> -o copies-default=2

Actual results:

$ lpoptions -p HP_LaserJet_M1536dnf_MFP_42307C_
device-uri=ipp://HP%20LaserJet%20M1536dnf%20MFP%20(42307C)._ipp._tcp.local/ printer-info='HP LaserJet M1536dnf MFP (42307C)' printer-location printer-make-and-model='HP LaserJet M1536dnf MFP' printer-type=83886100
$ lpstat -v
device for HP_LaserJet_M1536dnf_MFP_42307C_: ///dev/null

Expected output:
New default job option value showed in lpoptions and applied to a job by default.

Additional info:
Changing printer default options (lpoptions -p <queue> -o Duplex=DuplexTumble) seems to work.

@zdohnal zdohnal self-assigned this Sep 1, 2021
@zdohnal zdohnal modified the milestone: v2.5 Sep 1, 2021
@michaelrsweet
Copy link
Member

This is a side-effect of setting default options for a queue - that requires cupsd to convert the queue to permanent, but I can have cupsd return an error unless "printer-is-temporary=false" is added to the lpadmin options.

@michaelrsweet michaelrsweet added enhancement New feature or request priority-low labels Sep 13, 2021
@michaelrsweet michaelrsweet added this to the v2.4.x milestone Sep 13, 2021
@michaelrsweet michaelrsweet changed the title Temporary queue turns into permanent queue after changing job default option Unable to set xxx-default values for temporary queues using lpadmin Apr 5, 2024
@michaelrsweet
Copy link
Member

[master 88150a3] Report an error if you use lpadmin to set defaults for a temporary queue (Issue #237)

[2.4.x dce85e1] Report an error if you use lpadmin to set defaults for a temporary queue (Issue #237)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low
Projects
None yet
Development

No branches or pull requests

2 participants