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) --- now_listen/manifest.ini | 2 +- now_listen/now_listen.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'now_listen') 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 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): -- cgit v1.2.3