summaryrefslogtreecommitdiff
path: root/posts/spotify-notify.mdwn
blob: 5502a5f7df4dd3c8aee021b66589570ba84bb3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[[!meta title="Spotify Notify…"]]
[[!meta author="Daniel Silverstone"]]
[[!meta date="2011-10-30 00:11:28 +0100"]]
[[!tag tech]]

I have been working on some [vala](http://live.gnome.org/Vala) code
recently which supports the extant spotify client — adding media keys
and notification support. Unfortunately the default notification service
on Ubuntu 11.04 seems to be a bit grungy, not cancelling notifications
or supporting replacement notifications properly. Also it doesn’t seem
to return a notification ID if a client is full-screened on the monitor
where the notification would otherwise display. Of course, these things
may be fixed in more recent Ubuntus, I don’t know.

So I concentrated on making it work nicely with my [Awesome
WM](http://awesome.naquadah.org/) setup. This resulted in my writing a
small set of dbus bodgery for Awesome which also has notification
“issues” in the sense that it doesn’t send the
[NotificationClosed](http://www.galago-project.org/specs/notification/0.9/x408.html#signal-notification-closed)
signal because Awesome doesn’t have that ability. Also it wasn’t
responding to all the introspection and property probes which
[gio/gdbus](http://developer.gnome.org/gio/2.29/gdbus-convenience.html)
[proxies](http://developer.gnome.org/gio/2.29/GDBusProxy.html) end up
using. My quick bodge did the trick and I’ll look at upstreaming
something cleaner when I can get time to bring my checkout up to master.

I’d appreciate it if anyone elses out there who fancies it could try
[spotify-notify](http://git.digital-scurf.org/?p=spotify-notify.git;a=summary)
and let me know what they think. It’s a big skanky bodge currently so
don’t expect the code to be nice. I ran into various Vala related issues
which will hopefully boil down into bug reports in the next few days.