Make plugins not activatable under windows(dbus support needed)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[info]
|
||||
name: MPRIS2 support
|
||||
short_name: mpris2_support
|
||||
version: 0.3.1
|
||||
version: 0.3.2
|
||||
description: MPRIS2 support. Allows to update status message according to the music you're listening via the MPRIS2 D-Bus API.
|
||||
authors = Denis Fomin <fominde@gmail.com>
|
||||
homepage = http://trac-plugins.gajim.org/wiki/MprisSupportPlugin
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import os
|
||||
|
||||
from common import gajim
|
||||
from plugins import GajimPlugin
|
||||
from plugins.helpers import log_calls
|
||||
@@ -24,6 +26,9 @@ class Mpris2Plugin(GajimPlugin):
|
||||
self.config_dialog = None
|
||||
self.artist = self.title = self.source = ''
|
||||
self.listener = MusicTrackListener().get()
|
||||
if os.name == 'nt':
|
||||
self.available_text = _('Plugin can\'t be run under Windows.')
|
||||
self.activatable = False
|
||||
|
||||
@log_calls('NowListenPlugin')
|
||||
def activate(self):
|
||||
|
||||
Reference in New Issue
Block a user