Skip to content

Instantly share code, notes, and snippets.

View mk2mpris.py
#!/usr/bin/env python
"""mk2mpris.py: forward GNOME media key events to an MPRIS2 player.
"""
import dbus
from dbus.mainloop.glib import DBusGMainLoop
import gobject
APP_NAME = 'mk2mpris'
DBUS_INTERFACE_MK = 'org.gnome.SettingsDaemon.MediaKeys'
OBJ_PATH_MK = '/org/gnome/SettingsDaemon/MediaKeys'
View 0output
% dist/build/base64-check/base64-check
*** Failed! Falsifiable (after 18 tests and 3 shrinks):
[0,0,62]