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 /now_listen | |
parent | 69ea341d2709766781d45f330f541a45e289cfce (diff) |
Make plugins not activatable under windows(dbus support needed)
Diffstat (limited to 'now_listen')
-rw-r--r-- | now_listen/manifest.ini | 2 | ||||
-rw-r--r-- | now_listen/now_listen.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/now_listen/manifest.ini b/now_listen/manifest.ini index a63d750..9be275f 100644 --- a/now_listen/manifest.ini +++ b/now_listen/manifest.ini @@ -1,7 +1,7 @@ [info] name: Now Listen short_name: now-listen -version: 0.2.1 +version: 0.2.2 description: Copy tune info to conversation input box (alt + n) at cursor position authors = Denis Fomin <fominde@gmail.com> homepage = http://trac-plugins.gajim.org/wiki/NowListenPlugin diff --git a/now_listen/now_listen.py b/now_listen/now_listen.py index 1d7e946..432e694 100644 --- a/now_listen/now_listen.py +++ b/now_listen/now_listen.py @@ -2,6 +2,7 @@ from gi.repository import Gtk from gi.repository import Gdk +import os from common import gajim from plugins import GajimPlugin @@ -30,6 +31,9 @@ class NowListenPlugin(GajimPlugin): self.controls = [] self.first_run = True self.music_track_changed_signal = None + if os.name == 'nt': + self.available_text = _('Plugin can\'t be run under Windows.') + self.activatable = False @log_calls('NowListenPlugin') def connect_with_chat_control(self, chat_control): |