diff --git a/js/ui/components/automountManager.js b/js/ui/components/automountManager.js index 01e8f1e71..92f5b2b90 100644 --- a/js/ui/components/automountManager.js +++ b/js/ui/components/automountManager.js @@ -93,10 +93,10 @@ var AutomountManager = class { if (!this._session.SessionIsActive) return; - let sound = global.display.get_sound(); - sound.play_from_theme('device-removed-media', - _("External drive disconnected"), - null); + let player = global.display.get_sound_player(); + player.play_from_theme('device-removed-media', + _("External drive disconnected"), + null); } _onDriveEjectButton(monitor, drive) {