From 573e13c6e7cce2d11bccf043f0956a2042f1f7cb Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 31 Jul 2013 19:07:43 +0400 Subject: Make plugins not activatable under windows(dbus support needed) --- wicd_support/wicd_support.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wicd_support/wicd_support.py') 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! ' -- cgit v1.2.3