Commit e0a84d89 authored by Dicson's avatar Dicson
Browse files

ubuntu_integration. fix detecting 'python-xdg' module

parent 08468fb4
......@@ -31,11 +31,6 @@ try:
HAS_INDICATE = True
except ImportError:
HAS_INDICATE = False
try:
from xdg.BaseDirectory import load_data_paths
HAS_PYXDG = True
except ImportError:
HAS_PYXDG = False
class UbuntuIntegrationPlugin(GajimPlugin):
......@@ -64,10 +59,13 @@ class UbuntuIntegrationPlugin(GajimPlugin):
# {(account, jid): (indicator, [event, ...]), ...}
self.events = {}
try:
from xdg.BaseDirectory import load_data_paths
except ImportError:
raise GajimPluginException("python-xdg is missing!")
if not HAS_INDICATE:
raise GajimPluginException("python-indicate is missing!")
if not HAS_PYXDG:
raise GajimPluginException("python-xdg is missing!")
self.server = indicate.indicate_server_ref_default()
self.server.set_type("message.im")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment