spotify: try to support the new version of Spotify

Use dbus-mediakeys to get an appropriate DBus interface. In future
versions, this should not be needed anymore. See:
 https://github.com/vincentbernat/dbus-mediakeys
This commit is contained in:
Vincent Bernat 2015-07-12 11:31:13 +02:00
parent 86c36c91c6
commit e3747d1b9f
3 changed files with 66 additions and 46 deletions

View file

@ -17,7 +17,9 @@ local execute = {
"text/html",
-- Default MIME types
"xdg-mime default evince.desktop application/pdf",
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif"
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif",
-- dbus-mediakeys
"dbus-mediakeys &"
}
os.execute(table.concat(execute, ";"))