diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-02-22 14:16:15 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-02-22 14:16:15 +0100 |
commit | 3d3ff2fe523adffa7480222ecf2c78e2ba0b9331 (patch) | |
tree | cdc0668c44278a0f71f9fc071f54f75e173a1abe /liveusb/gui.py | |
parent | b04ce5a0cc9c4c762c6447552e781fcd6e4b41ac (diff) | |
download | usbdumper-3d3ff2fe523adffa7480222ecf2c78e2ba0b9331.tar usbdumper-3d3ff2fe523adffa7480222ecf2c78e2ba0b9331.tar.gz usbdumper-3d3ff2fe523adffa7480222ecf2c78e2ba0b9331.tar.bz2 usbdumper-3d3ff2fe523adffa7480222ecf2c78e2ba0b9331.tar.xz usbdumper-3d3ff2fe523adffa7480222ecf2c78e2ba0b9331.zip |
New writing method replacing dd.exe under Windows.
Diffstat (limited to 'liveusb/gui.py')
-rwxr-xr-x | liveusb/gui.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/liveusb/gui.py b/liveusb/gui.py index 9de97e5..da85b9f 100755 --- a/liveusb/gui.py +++ b/liveusb/gui.py @@ -21,8 +21,6 @@ # Kushal Das <kushal@fedoraproject.org> # Aurelien Lefebvre <alefebvre@mandriva.com> -import os -import sys import logging from datetime import datetime @@ -105,8 +103,8 @@ class LiveUSBThread(QtCore.QThread): except LiveUSBError, e: self.status(e.message) - except Exception, e: - self.status(_("LiveUSB creation failed!")) +# except Exception, e: +# self.status(_("LiveUSB creation failed!")) def __del__(self): self.wait() @@ -188,10 +186,16 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface): self.populate_devices) # If we have access to HAL & DBus, intercept some useful signals - if hasattr(self.live, 'hal'): - self.live.hal.connect_to_signal('DeviceAdded', +# if hasattr(self.live, 'hal'): +# self.live.i.connect_to_signal('DeviceAdded', +# self.populate_devices) +# self.live.hal.connect_to_signal('DeviceRemoved', +# self.populate_devices) + # If we have access to UDisk & DBus, intercept some useful signals + if hasattr(self.live, 'iface'): + self.live.iface.connect_to_signal('DeviceAdded', self.populate_devices) - self.live.hal.connect_to_signal('DeviceRemoved', + self.live.iface.connect_to_signal('DeviceRemoved', self.populate_devices) def progress(self, value): @@ -245,7 +249,7 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface): try: self.live.set_iso(isofile) - except Exception, e: + except Exception as e: self.live.log.error(e.message.encode('utf8')) self.status(_("Unable to encode the filename of your livecd. " "You may have better luck if you move your ISO " |