Bug 749270
Summary: | Default media size not set correctly | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim Waugh <twaugh> |
Component: | gnome-settings-daemon | Assignee: | Marek Kašík <mkasik> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | bnocera, mclasen, mkasik, rstrode |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | gnome-settings-daemon-3.4.1-1.fc17 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-15 14:47:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 749235 | ||
Bug Blocks: |
Description
Tim Waugh
2011-10-26 15:34:28 UTC
I don't think we should be adding workarounds like that. If we need a new method in cups-pk-helper, lets just add one there. OK, marking this as blocked by bug #749235. I agree with Matthias, I'll suggest the new method to upstream. Hi Tim, I've implemented the method you talk about in #749235 but when I want to set 'media' to 'iso_a4' it doesn't work. I have to set 'media-default' to see the change in 'lpoptions' (shown in 'media' btw). It also works with the method PrinterAddOptionDefault() when setting 'media'. Also, shouldn't we set 'iso-a4' here for A4 instead of 'iso_a4'? Regards Marek The correct attribute name is "media", not "media-default". Setting media-default will add a server-side option in printers.conf, but will *not* adjust the PPD. You're right about iso-a4 though, sorry about that. # lpadmin -p Charlie -o media=na-letter # systemctl restart cups.service # be sure that changes are written to the files # grep media /etc/cups/printers.conf # grep \*DefaultPageSize /etc/cups/ppd/Charlie.ppd *DefaultPageSize: Letter # lpoptions -p Charlie -l | grep PageSize | grep -o '\*[^ ]*' *Letter # lpadmin -p Charlie -o media=iso-a4 # systemctl restart cups.service # be sure that changes are written to the files # grep media /etc/cups/printers.conf # grep \*DefaultPageSize /etc/cups/ppd/Charlie.ppd *DefaultPageSize: A4 # lpoptions -p Charlie -l | grep PageSize | grep -o '\*[^ ]*' *A4 This has been fixed in gnome-settings-daemon-3.4.1-1.fc17. I don't plan to backport the change into Fedora 16. Regards Marek |