Image 01
profile-image

BenjaminOechslein

Benjamin Oechslein
test
Gnome Multimedia Keys 2

Amarok 2.x Scripts 14 comments

Score 58.0%
Apr 25 2009
Due to some changes in gnome-settings-daemon this script fails to work in Ubuntu 11.10. The following patch should fix this issue:

Quote:

diff -u a/listner.py b/listner.py
--- a/listner.py 2009-04-25 17:12:41.000000000 +0200
+++ b/listner.py 2011-11-10 17:47:04.000000000 +0100
@@ -84,7 +84,8 @@
raise
try:
listner = bus.get_object('org.gnome.SettingsDaemon', '/org/gnome/SettingsDaemon/MediaKeys')
- listner.connect_to_signal("MediaPlayerKeyPressed", signal_handler, dbus_interface='org.gnome.SettingsDaemon.MediaKeys')
+ listner.GrabMediaPlayerKeys("amarok", 0, dbus_interface='org.gnome.SettingsDaemon.MediaKeys')
+ listner.connect_to_signal("MediaPlayerKeyPressed", signal_handler)
except:
exit(104)
raise
- Nov 10 2011