Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change dbus signature for notifications

  • Loading branch information...
commit e25a752f2980530ab07c26a6f8529c3411471be4 1 parent 047b79e
@paradoxxxzero paradoxxxzero authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  libqtile/notify.py
  2. +3 −0  libqtile/widget/mpdwidget.py
View
2  libqtile/notify.py
@@ -25,7 +25,7 @@ def __init__(self, manager):
def GetCapabilities(self):
return ('body')
- @service.method(BUS_NAME, in_signature='susssasa{ss}i',
+ @service.method(BUS_NAME, in_signature='susssasa{sv}i',
out_signature='u')
def Notify(self, app_name, replaces_id, app_icon, summary,
body, actions, hints, timeout):
View
3  libqtile/widget/mpdwidget.py
@@ -123,6 +123,9 @@ def update(self):
playing = u'%s%s' % (utils.escape(artist),
utils.escape(title))
+ if playing == u'':
+ playing = song.get('filename', '??')
+
if status and status.get('time', None):
elapsed, total = status['time'].split(':')
percent = float(elapsed) / float(total)
Please sign in to comment.
Something went wrong with that request. Please try again.