diff options
author | Denis Fomin <fominde@gmail.com> | 2013-07-31 19:07:43 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2013-07-31 19:07:43 +0400 |
commit | 573e13c6e7cce2d11bccf043f0956a2042f1f7cb (patch) | |
tree | 8b8aef953240c222d9b1abc168c4a1e97b210c1b /wicd_support | |
parent | 69ea341d2709766781d45f330f541a45e289cfce (diff) |
Make plugins not activatable under windows(dbus support needed)
Diffstat (limited to 'wicd_support')
-rw-r--r-- | wicd_support/manifest.ini | 2 | ||||
-rw-r--r-- | wicd_support/wicd_support.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/wicd_support/manifest.ini b/wicd_support/manifest.ini index aafd4cc..4ea57d9 100644 --- a/wicd_support/manifest.ini +++ b/wicd_support/manifest.ini @@ -1,7 +1,7 @@ [info] name: Wicd support short_name: wicd_support -version: 0.1.1 +version: 0.1.2 description: Support for autodetection of network status for Wicd Network Manager. Requires wicd and python-dbus. authors = Denis Fomin <fominde@gmail.com> 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! ' |