eonpatapon/gnome-shell-extensions-mediaplayer — pull request #62 by grawity (2012-04-20 14:48:01+00:00)
Title: Minor fixes to player discovery code

Mostly for correctness; no actual issues were encountered yet.

* Use regexp literals instead of string literals.

* Compile the regexp once in _init() instead of doing it every time.

* Escape `.` which is a wildcard in regexps, matching any character.

* Make sure only "`MediaPlayer2.`" is matched, not "`MediaPlayer2Foo`"

* Only act on additions and deletions, not owner changes. (DBus allows
several applications to wait in a queue for the name.)