Ticket #617 (closed defect: fixed)
volume (disk) device: get rid of HAL
|Reported by:||sascha_silbe||Owned by:||tomeu|
|Priority:||Unspecified by Maintainer||Milestone:||Unspecified by Release Team|
|Component:||sugar||Version:||Git as of bugdate|
If hald is not running, the following traceback happens:
Traceback (most recent call last): File "/home/sugar/sugar-jhbuild/install/share/sugar/extensions/deviceicon/volume.py", line 86, in _setup_volumes _mount(volume, tray) File "/home/sugar/sugar-jhbuild/install/share/sugar/extensions/deviceicon/volume.py", line 103, in _mount volume.mount(gtk.MountOperation(tray.get_toplevel()), _mount_cb) AttributeError: 'module' object has no attribute 'MountOperation'
There are several other candidates for disk hotplug detection: Fedora 11 seems to be going to use DeviceKit-disks (which might turn out not to be much better for embedded systems, though). A udev helper script could notify Sugar as well (would need to be installed, of course).
At the very least, the exception should be catched, though.