Bug 276572 - [regression] Print dialog fails to list any CUPS printers
Summary: [regression] Print dialog fails to list any CUPS printers
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: print-dialog (show other bugs)
Version: 4.6
Platform: Compiled Sources FreeBSD
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 20:49 UTC by David Naylor
Modified: 2011-09-23 14:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Naylor 2011-06-26 20:49:21 UTC
Version:           4.6 (using KDE 4.6.4) 
OS:                FreeBSD

I have two remote CUPS printers (via cups-smb-backend) installed with CUPS.  These printers are visible from http://localhost:631, system-config-printer and  "Printer Configuration" module in systemsettings, and are printable from LibreOffice.  They, however, do not appear in any print dialogs from KDE programs (such as kate, kwrite, KMyMoney, Konqueror).  

This problem only occurred recently, after an upgrade of KDE.  

Reproducible: Always

Steps to Reproduce:
Display Print Dialog

Actual Results:  
Only Print to PDF/PS displayed

Expected Results:  
CUPS Printers also displayed

I have turned on all debugging options under kdebugdialog however did not see any output on the console for kwrite that indicated anything to do with printing or CUPS.  

Also the only relevant entry in ~/.xsession-errors is:
Traceback (most recent call last):
  File "/usr/local/bin/printer-applet", line 1153, in <module>
    applet = JobManager()
  File "/usr/local/bin/printer-applet", line 299, in __init__
    notification = NewPrinterNotification(bus, self)
  File "/usr/local/bin/printer-applet", line 1042, in __init__
    bus_name = dbus.service.BusName (PDS_OBJ, bus=bus)
  File "/usr/local/lib/python2.7/site-packages/dbus/service.py", line 129, in __new__
    retval = bus.request_name(name, name_flags)
  File "/usr/local/lib/python2.7/site-packages/dbus/bus.py", line 306, in request_name
    'su', (name, flags))
  File "/usr/local/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.111" is not allowed to own the service "com.redhat.NewPrinterNotification" due to security policies in the configuration file

There are no errors reported in /var/log/cups/error_log and only a single line (when KDE starts) in /var/log/cups/access_log:
localhost - - [26/Jun/2011:22:33:40 +0200] "POST / HTTP/1.1" 200 345 Create-Printer-Subscription successful-ok
Comment 1 Christoph Feck 2011-06-26 22:54:19 UTC
What else besides did you update besides KDE packages? Which was your previous version of KDE? The printing dialog is actually that from Qt, so if you did not update Qt version, there is a regression with your CUPS setup.
Comment 2 David Naylor 2011-06-28 15:49:24 UTC
I no longer have information for previous versions of KDE/Qt/CUPS.  I was not aware the dialog was from Qt, in which case it appears to be a regression in Qt and not KDE.  

I have CUPS 1.4.6 and Qt 4.7.3 installed.  Looking at the changes to ports, in reverse order, qt was updated from 4.7.2, cups from 1.4.5, qt from 4.7.1 and cups from 1.4.4.  I will downgrade to those versions and report back my findings.
Comment 3 David Naylor 2011-09-23 14:10:31 UTC
Updating to the latest version of Qt and KDE fixes this problem for me.