Make plugins not activatable under windows(dbus support needed)

This commit is contained in:
Denis Fomin
2013-07-31 19:07:43 +04:00
parent 69ea341d27
commit 573e13c6e7
8 changed files with 23 additions and 4 deletions

View File

@@ -3,6 +3,8 @@
import dbus
import datetime as dt
from gi.repository import GObject
import os
from common import gajim
from common import ged
from common import dbus_support
@@ -29,6 +31,9 @@ class HamsterIntegrationPlugin(GajimPlugin):
'and http://projecthamster.wordpress.com/about/')
self.config_dialog = None
self.events_handlers = {}
if os.name == 'nt':
self.available_text = _('Plugin can\'t be run under Windows.')
self.activatable = False
@log_calls('HamsterIntegrationPlugin')
def activate(self):

View File

@@ -1,7 +1,7 @@
[info]
name: Hamster integration
short_name: hamster_integration
version: 0.1.2
version: 0.1.3
description: Integration with project hamster
see https://trac.gajim.org/ticket/6993
and http://projecthamster.wordpress.com/about/