diff --git a/src/dbus_support.py b/src/dbus_support.py index 112c412fe2bfd3df48eaff42dc81fcc16d72056f..d4f7542a3f846518765bb15ee7b1102afe49f75c 100644 --- a/src/dbus_support.py +++ b/src/dbus_support.py @@ -24,9 +24,8 @@ from common import exceptions try: import dbus import dbus.service - # cause dbus 0.35+ doesn't return signal replies without it import dbus.glib - supported = True + supported = True # does use have D-Bus bindings? except ImportError: supported = False if not os.name == 'nt': # only say that to non Windows users @@ -34,7 +33,7 @@ except ImportError: print _('D-Bus capabilities of Gajim cannot be used') class SessionBus: - '''A Singleton for the DBus SessionBus''' + '''A Singleton for the D-Bus SessionBus''' def __init__(self): self.session_bus = None diff --git a/src/roster_window.py b/src/roster_window.py index 7db74b36d5ff8334115944ad6fd12c9aa218f343..a37815d9ca116a7caf69c6c05c9aa2a9081e5332 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2392,7 +2392,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid) '''if enabled is True, we listen to events from music players about currently played music track, and we update our status message accordinly''' - if not dbus_support.supported: # do nothing if we haven't D-Bus running + if not dbus_support.supported: + # do nothing if user doesn't have D-Bus bindings return if enabled: if self._music_track_changed_signal is None: