diff --git a/src/interfaces/mpris-interface.js b/src/interfaces/mpris-interface.js index d4ed36a..3d77cf7 100644 --- a/src/interfaces/mpris-interface.js +++ b/src/interfaces/mpris-interface.js @@ -6,9 +6,10 @@ const constants = require('../constants'); const logging = require('../logging'); let { - Interface, property, method, signal, DBusError, + Interface, property, method, signal, ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE } = dbus.interface; +let DBusError = dbus.DBusError; class MprisInterface extends Interface { constructor(name, player) { diff --git a/src/interfaces/player.js b/src/interfaces/player.js index 1c3f5e5..eaa216f 100644 --- a/src/interfaces/player.js +++ b/src/interfaces/player.js @@ -5,10 +5,12 @@ const JSBI = require('jsbi'); const constants = require('../constants'); let { - property, method, signal, DBusError, + property, method, signal, ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE } = dbus.interface; +let DBusError = dbus.DBusError; + class PlayerInterface extends MprisInterface { constructor(player) { super('org.mpris.MediaPlayer2.Player', player); diff --git a/src/interfaces/playlists.js b/src/interfaces/playlists.js index 81f5715..b4095f7 100644 --- a/src/interfaces/playlists.js +++ b/src/interfaces/playlists.js @@ -5,9 +5,10 @@ let Variant = dbus.Variant; let types = require('./types'); let { - property, method, signal, DBusError, + property, method, signal, ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE } = dbus.interface; +let DBusError = dbus.DBusError; class PlaylistsInterface extends MprisInterface { constructor(player) { diff --git a/src/interfaces/root.js b/src/interfaces/root.js index 09ab019..98ab259 100644 --- a/src/interfaces/root.js +++ b/src/interfaces/root.js @@ -3,9 +3,10 @@ let dbus = require('dbus-next'); let Variant = dbus.Variant; let { - property, method, signal, DBusError, + property, method, signal, ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE } = dbus.interface; +let DBusError = dbus.DBusError; class RootInterface extends MprisInterface { constructor(player, opts={}) { diff --git a/src/interfaces/tracklist.js b/src/interfaces/tracklist.js index 6c6cca0..b3d7439 100644 --- a/src/interfaces/tracklist.js +++ b/src/interfaces/tracklist.js @@ -4,9 +4,10 @@ let Variant = dbus.Variant; let types = require('./types'); let { - property, method, signal, DBusError, + property, method, signal, ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE } = dbus.interface; +let DBusError = dbus.DBusError; class TracklistInterface extends MprisInterface { constructor(player) {