Make plugins not activatable under windows(dbus support needed)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user