Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2013-07-31 19:07:43 +0400
committerDenis Fomin <fominde@gmail.com>2013-07-31 19:07:43 +0400
commit573e13c6e7cce2d11bccf043f0956a2042f1f7cb (patch)
tree8b8aef953240c222d9b1abc168c4a1e97b210c1b /wicd_support/wicd_support.py
parent69ea341d2709766781d45f330f541a45e289cfce (diff)
Make plugins not activatable under windows(dbus support needed)
Diffstat (limited to 'wicd_support/wicd_support.py')
-rw-r--r--wicd_support/wicd_support.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wicd_support/wicd_support.py b/wicd_support/wicd_support.py
index 375e186..4041b99 100644
--- a/wicd_support/wicd_support.py
+++ b/wicd_support/wicd_support.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+import os
from common import gajim
from plugins import GajimPlugin
@@ -17,6 +18,10 @@ class WicdPlugin(GajimPlugin):
def test_activatable(self):
self.available_text = ''
+ if os.name == 'nt':
+ self.available_text = _('Plugin can\'t be run under Windows.')
+ self.activatable = False
+ return
if not dbus_support.supported:
self.activatable = False
self.available_text += _('python-dbus is missing! '