Bug 217395

Summary: system-config-printer should update /etc/cups/lpoptions
Product: [Fedora] Fedora Reporter: Stuart Jansen <bugzilla+redhat>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: emcnabb
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.7.45-1.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-05 23:54:51 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:    
Bug Blocks: 207681    

Description Stuart Jansen 2006-11-27 18:53:24 UTC
Description of problem:
/etc/cups/lpoptions is not updated when system-config-printer is used to select
a new default printer.

Version-Release number of selected component (if applicable):
system-config-printer-0.7.35-1.fc6
cups-1.2.5-2.fc6.8

How reproducible:
Always.

Steps to Reproduce:
1. Add a printer using system-config-printer, make it the default printer.
2. Add a secont printer, make it the default printer.
3. Run lpq, lpoptions, etc. Observe that the first printer is still the default.
4. Examine /etc/cups/printers.conf. Notice that the second printer is listed as
the default printer.
5. Poke at system-config-printer by switching printer1 to default then printer2
back to default. Observe that this did no good.
6. Manually edit /etc/cups/lpoptions. Notice that printer1 is listed as default
despite what system-config-printer and /etc/cups/printers.conf think. Manually
switch to printer2 as default.
7. Run lpq, lpoptions, etc. Observe that printer2 is now the default.
8. Tear our hair, curse at the ceiling. Throw things if necessary.
  
Actual results:
lp*, acroread, etc. choose the wrong default printer

Expected results:
The default specified in system-config-printer should be the default printer in
all applications and with all commands.

Additional info:
Looks like /etc/cups/printers.conf is being updated, but /etc/cups/loptions
isn't being updated.

Comment 1 Tim Waugh 2006-11-27 19:18:44 UTC
Ah, I bet this was an update from a previous release of Fedora..

Will need code to fetch /admin/conf/lpoptions and replace 'Default' with 'Dest'
if that printer is not the new default.  Also needs to handle cups.HTTPError 404.

Comment 2 Tim Waugh 2006-12-08 14:14:52 UTC
Please try 0.7.41-1.fc6 from updates-testing, like this:

yum --enablerepo=updates-testing update 'system-config-printer*'


Comment 3 Tim Waugh 2006-12-14 10:48:54 UTC
Have you had a chance to try the test update package yet?

Comment 4 Fedora Update System 2007-01-05 18:20:12 UTC
Fixed in update: system-config-printer-0.7.45-1.fc6