Bug 479534

Summary: system-config-printer fails miserably if dbus/messagebus is running only for the session
Product: [Fedora] Fedora Reporter: Robert M. Riches Jr. <rm.riches>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-12 10:50:45 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:

Description Robert M. Riches Jr. 2009-01-10 19:52:09 UTC
Description of problem:
When running dbus/message on a per-session basis rather than from the system
init scripts, system-config-printer fails miserably--refuses to run.  A tool to
configure system printers shouldn't require dbus/messagebus to be running, let
alone require it to be running from the init scripts.  There are valid reasons
for not wanting dbus/messagebus to be running at all, let alone persistent
across login sessions.

Version-Release number of selected component (if applicable):
system-config-printer-1.0.7-13mdv2009.0

How reproducible:
100%

Steps to Reproduce:
1.Install a new Mandriva 2009.0 system.
2.Configure dbus/messagebus to _NOT_ run from the init scripts, so it runs from
the script in xinit.d.
3.Try to run system-config-printer.
  
Actual results:
A Python stack trace like this:

/usr/share/system-config-printer/system-config-printer.py:203: GtkWarning:
GtkSp
inButton: setting an adjustment with non-zero page size is deprecated
  self.xml = gtk.glade.XML(xml, domain = domain)
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 5343,
i
n <module>
    main(configure_printer, change_ppd)
  File "/usr/share/system-config-printer/system-config-printer.py", line 5311,
i
n main
    mainwindow = GUI(configure_printer, change_ppd)
  File "/usr/share/system-config-printer/system-config-printer.py", line 571,
in
 __init__
    self.monitor = monitor.Monitor (self, monitor_jobs=False)
  File "/usr/share/system-config-printer/monitor.py", line 151, in __init__
    bus = dbus.SystemBus ()
  File "/usr/lib/python2.5/site-packages/dbus/_dbus.py", line 202, in __new__
    private=private)
  File "/usr/lib/python2.5/site-packages/dbus/_dbus.py", line 108, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/python2.5/site-packages/dbus/bus.py", line 125, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed
t
o connect to socket /var/run/dbus/system_bus_socket: No such file or directory


Expected results:
Ideally, the utility should not require connection to Dbus.
At the least, the utility should function with the session Dbus.

Additional info:
This was originally filed into Mandriva's bugzilla as

https://qa.mandriva.com/show_bug.cgi?id=46615

Pacho Ramos on the Mandriva Triage team instructed me to file it here.

Comment 1 Tim Waugh 2009-01-12 10:50:45 UTC
The correct upstream bug tracker is:
  http://fedorahosted.org/system-config-printer

See "Reporting Bugs" on the project page:
  http://cyberelk.net/tim/software/system-config-printer/

Please let the Mandriva folks know.

Fixed upstream anyway, this time.