Fixed removable drive for OSX

This commit is contained in:
Jaime van Kessel 2016-03-08 16:59:16 +01:00
parent 9bf12cf7b2
commit 3df0b4de66

View file

@ -44,7 +44,7 @@ class OSXRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
return drives
def performEjectDevice(self, device):
p = subprocess.Popen(["diskutil", "eject", path], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p = subprocess.Popen(["diskutil", "eject", device.getId()], stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
output = p.communicate()
return_code = p.wait()