Correctly test dbus. Fixes #6844
This commit is contained in:
parent
40db9c36b7
commit
e76550dd19
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ except ImportError:
|
||||||
HAS_GTK_SPELL = False
|
HAS_GTK_SPELL = False
|
||||||
|
|
||||||
from common import dbus_support
|
from common import dbus_support
|
||||||
if dbus_support:
|
if dbus_support.supported:
|
||||||
import dbus
|
import dbus
|
||||||
import remote_control
|
import remote_control
|
||||||
|
|
||||||
|
@ -1427,7 +1427,7 @@ class ChatControl(ChatControlBase):
|
||||||
'chat_control', contact, acct, resource)
|
'chat_control', contact, acct, resource)
|
||||||
|
|
||||||
self._dbus_message_sent_match = None
|
self._dbus_message_sent_match = None
|
||||||
if dbus_support:
|
if dbus_support.supported:
|
||||||
bus = dbus_support.session_bus.bus()
|
bus = dbus_support.session_bus.bus()
|
||||||
try:
|
try:
|
||||||
obj = bus.get_object(remote_control.SERVICE, remote_control.OBJ_PATH)
|
obj = bus.get_object(remote_control.SERVICE, remote_control.OBJ_PATH)
|
||||||
|
|
Loading…
Add table
Reference in a new issue