1. Tasos Latsas
  2. udiskie

Commits

Byron Clark  committed cdd09f1

Only mount an unmounted device.

  • Participants
  • Parent commits ce1cd4e
  • Branches default

Comments (0)

Files changed (1)

File udiskie/mount.py

View file
  • Ignore whitespace
                                      bus_name='org.freedesktop.UDisks')
 
     def _mount_device(self, device):
-        if device.is_handleable():
+        if device.is_handleable() and not device.is_mounted():
             filesystem = str(device.id_type())
             options = []
             device.mount(filesystem, options)