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 ...
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
10
All Linux
low Severity medium
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2009-01-12 05:50:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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):
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 05:50:45 EST
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.

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