Comment 2 for bug 175097

Revision history for this message
Alejandro Díaz-Caro (janus) wrote :

It didn't fix the problem for me. Now, "Eject" doesn't do anything.

janus@mobileqcomp:~$ ./pyremove
Checking all devices......
Devices checked.

When I connect my USB device, the output is the following

dbus detected device: /org/freedesktop/Hal/devices/usb_device_66f_8000_23DEABA49254088A
dbus detected device: /org/freedesktop/Hal/devices/usb_device_66f_8000_23DEABA49254088A_if0
dbus detected device: /org/freedesktop/Hal/devices/usb_device_66f_8000_23DEABA49254088A_usbraw
dbus detected device: /org/freedesktop/Hal/devices/usb_device_66f_8000_23DEABA49254088A_if0_scsi_host
dbus detected device: /org/freedesktop/Hal/devices/usb_device_66f_8000_23DEABA49254088A_if0_scsi_host_scsi_device_lun0
dbus detected device: /org/freedesktop/Hal/devices/usb_device_66f_8000_23DEABA49254088A_if0_scsi_host_scsi_device_lun0_scsi_generic
dbus detected device: /org/freedesktop/Hal/devices/storage_serial_SigmaTel_MSCN_23DEABA49254088A_0_0
dbus detected device: /org/freedesktop/Hal/devices/volume_part1_size_999682048

Then, when I click "Accept" in the kubuntu's menu to mount the device:

pyremove detected device /org/freedesktop/Hal/devices/volume_part1_size_999682048

and the icon appear in the tray.

After I close the window that show the device's content, I clicked on "Eject /dev/sdb1" from pyRemove's menu and the output is the following:

Traceback (most recent call last):
  File "./pyremove", line 237, in menuitem_response
    self._eject_device(dev)
  File "./pyremove", line 247, in _eject_device
    print "ejecting %s" % dev
NameError: global name 'dev' is not defined

And the device wasn't unmounted:

janus@mobileqcomp:~$ mount | grep sdb1
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)

and the icon doesn't disappear.

If I unmount the device from the icon on desktop, pyRemove disappear from the tray and the following output occurs:

pyremove unmounted device /org/freedesktop/Hal/devices/volume_part1_size_999682048