Browse Source

Fixed removable drive for OSX

Jaime van Kessel 9 years ago
parent
commit
3df0b4de66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py

+ 1 - 1
plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py

@@ -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()