Bug 743884

Summary: Printer list not updated when device disconnected
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: control-centerAssignee: Marek Kašík <mkasik>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: control-center-maint, mkasik, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: control-center-3.2.2-1.fc16.x86_64 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-18 16:19:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tim Waugh 2011-10-06 11:42:02 UTC
Description of problem:
With the Printers settings window open, disconnecting a connected printer does not show any effect even though the CUPS queue has been paused.

Reloading it by clicking All Settings and then Printers shows it correctly: the list item is shown "greyed" and the on-off widget is set to OFF.

Reconnecting the printer does correctly update the window.

Version-Release number of selected component (if applicable):
control-center-3.2.0-1.fc16.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Plug in printer
2.System Settings -> Printers
3.Disconnect printer
  
Actual results:
No change shown in the window

Expected results:
New printer state should be shown.

Comment 1 Marek Kašík 2011-11-01 13:21:04 UTC
Hi,

I've just committed a fix for this into upstream's git. It will be available in gnome-control-center-3.2.2 release (which should be available at 16th of November).
The problem here was that the panel was not connected to CUPS' event "printer-stopped". But it have been connected to "printer-state-changed" and this is strange because the printer changes state when unplugged but CUPS doesn't emit "printer-state-changed" for that, just the "printer-stopped".

Isn't this a bug in CUPS?

Regards

Marek

Comment 2 Tim Waugh 2011-11-04 11:49:15 UTC
Thanks.

> Isn't this a bug in CUPS?

No, this seems to be according to how RFC 3995 says it should work (ref. 5.3.3.5.1).

Comment 3 Tim Waugh 2011-11-18 16:19:22 UTC
Fix verified.  Thanks!

control-center-3.2.2-1.fc16.x86_64