jreese/spotify-gnome — pull request #5 by mattjbray (2012-11-17 12:38:48+00:00)
Title: Fix notifications

A few fixes for my previous patch. My old code waited 2 seconds for Spotify to start before attempting to connect to the `PropertiesChanged` signal. If Spotify didn't start in time the script crashed. This patch fixes that by connecting to `PropertiesChanged` in your `name_owner_changed` callback.

Also
* Cleans up notifications on exit
* Handles key errors in the metadata received from `PropertiesChanged`
* Adds a stopped notification