From 60fb76aca18a68c29a6b71c73b51b9827ced1278 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 6 Jun 2009 11:43:46 -0700 Subject: [PATCH] Don't replace spaces with underscores in linux device mount points --- src/calibre/devices/usbms/device.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/devices/usbms/device.py b/src/calibre/devices/usbms/device.py index 3d0d030cb8..04f99f0768 100644 --- a/src/calibre/devices/usbms/device.py +++ b/src/calibre/devices/usbms/device.py @@ -422,14 +422,13 @@ class Device(DeviceConfig, DevicePlugin): if label is None: label = self.STORAGE_CARD_VOLUME_LABEL + ' 2' extra = 0 - label = label.replace(' ', '_') while True: q = '_(%d)'%extra if extra else '' if not os.path.exists('/media/'+label+q): break extra += 1 if extra: - label += '_(%d)'%extra + label += ' (%d)'%extra def do_mount(node, label): cmd = ['pmount', '-w', '-s']