If there are more than one USB device, when I disconnect only one, the Eject option for that device do not disappear from the menu

Bug #174905 reported by Alejandro Díaz-Caro
4
Affects Status Importance Assigned to Milestone
pyRemove
Fix Committed
Critical
Javier Derderyan

Bug Description

If there are more than one USB Mass Storage device connected, when I disconnect only one, the Eject option for that device do not disappear from the menu. However, if all devices are disconnected, the tray icon disappear.

description: updated
Changed in pyremove:
assignee: nobody → javierder
importance: Undecided → Critical
Changed in pyremove:
status: New → Confirmed
Revision history for this message
Javier Derderyan (javierder) wrote :

I've commited some changes that should fix this or, if it's not fixed it shows more debug data.
Please, post the output of the program here.

Changed in pyremove:
status: Confirmed → Fix Committed
Revision history for this message
Alejandro Díaz-Caro (janus) wrote :

I tried with the last version.
When I connect a new usb device, this is the output:
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
pyremove detected device /org/freedesktop/Hal/devices/volume_part1_size_999682048

But, when I click on "eject" option, I get this:
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 is still mounted (and the option "eject" on the menu is still there too).

I am on KDE

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.