Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
5656b787
Commit
5656b787
authored
Dec 26, 2016
by
Philipp Hörist
Committed by
Tomasz Miąsko
Jan 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mpris2] Dont enable Plugin on missing deps
parent
21db440c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
mpris2_support/mpris2_support.py
mpris2_support/mpris2_support.py
+11
-3
No files found.
mpris2_support/mpris2_support.py
View file @
5656b787
...
...
@@ -9,8 +9,15 @@ from plugins.helpers import log_calls
from
plugins.plugin
import
GajimPluginException
from
common
import
dbus_support
ERR_MSG
=
''
if
dbus_support
.
supported
:
from
music_track_listener
import
MusicTrackListener
else
:
ERR_MSG
=
'D-Bus Python bindings are missing'
if
os
.
name
==
'nt'
:
ERR_MSG
=
'Plugin can
\'
t be run under Windows.'
class
MusicTrackInfo
(
object
):
...
...
@@ -24,11 +31,12 @@ class Mpris2Plugin(GajimPlugin):
self
.
description
=
_
(
'MPRIS2 support. Allows to update status message '
'according to the music you
\'
re listening via the MPRIS2 D-Bus API.'
)
self
.
config_dialog
=
None
if
ERR_MSG
:
self
.
available_text
=
ERR_MSG
self
.
activatable
=
False
return
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment