Skip to content
Snippets Groups Projects
Commit 4062d3d3 authored by nkour's avatar nkour
Browse files

improve comments

parent 70a28b47
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment