don't TB when dbus is not present. fixes #3328
This commit is contained in:
parent
81c65ccac8
commit
bf6c87b888
2 changed files with 8 additions and 5 deletions
|
@ -2717,9 +2717,12 @@ class Interface:
|
||||||
auto=True)
|
auto=True)
|
||||||
gajim.sleeper_state[account] = 'autoaway'
|
gajim.sleeper_state[account] = 'autoaway'
|
||||||
|
|
||||||
bus = dbus.SessionBus()
|
try:
|
||||||
bus.add_signal_receiver(gnome_screensaver_ActiveChanged_cb,
|
bus = dbus.SessionBus()
|
||||||
'ActiveChanged', 'org.gnome.ScreenSaver')
|
bus.add_signal_receiver(gnome_screensaver_ActiveChanged_cb,
|
||||||
|
'ActiveChanged', 'org.gnome.ScreenSaver')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
self.show_vcard_when_connect = []
|
self.show_vcard_when_connect = []
|
||||||
|
|
||||||
|
|
|
@ -3681,13 +3681,13 @@ class RosterWindow:
|
||||||
if not dbus_support.supported:
|
if not dbus_support.supported:
|
||||||
# do nothing if user doesn't have D-Bus bindings
|
# do nothing if user doesn't have D-Bus bindings
|
||||||
return
|
return
|
||||||
bus = dbus.SessionBus()
|
|
||||||
try:
|
try:
|
||||||
|
bus = dbus.SessionBus()
|
||||||
if not 'com.google.code.Awn' in bus.list_names():
|
if not 'com.google.code.Awn' in bus.list_names():
|
||||||
# Awn is not installed
|
# Awn is not installed
|
||||||
return
|
return
|
||||||
except:
|
except:
|
||||||
pass
|
return
|
||||||
iconset = gajim.config.get('iconset')
|
iconset = gajim.config.get('iconset')
|
||||||
prefix = os.path.join(helpers.get_iconset_path(iconset), '32x32')
|
prefix = os.path.join(helpers.get_iconset_path(iconset), '32x32')
|
||||||
if status in ('chat', 'away', 'xa', 'dnd', 'invisible', 'offline'):
|
if status in ('chat', 'away', 'xa', 'dnd', 'invisible', 'offline'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue