Bug 479534 - system-config-printer fails miserably if dbus/messagebus is running only for the session
system-config-printer fails miserably if dbus/messagebus is running only for ...
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-01-10 14:52 EST by Robert M. Riches Jr.
Modified: 2009-01-12 05:50 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-12 05:50:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert M. Riches Jr. 2009-01-10 14:52:09 EST
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):

How reproducible:

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:
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,
n <module>
    main(configure_printer, change_ppd)
  File "/usr/share/system-config-printer/system-config-printer.py", line 5311,
n main
    mainwindow = GUI(configure_printer, change_ppd)
  File "/usr/share/system-config-printer/system-config-printer.py", line 571,
    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__
  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
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


Pacho Ramos on the Mandriva Triage team instructed me to file it here.
Comment 1 Tim Waugh 2009-01-12 05:50:45 EST
The correct upstream bug tracker is:

See "Reporting Bugs" on the project page:

Please let the Mandriva folks know.

Fixed upstream anyway, this time.

Note You need to log in before you can comment on or make changes to this bug.