[Bugs] #617 LOW: volume (disk) device: fail gracefully if hald is not running
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Mon Mar 23 12:37:03 EDT 2009
#617: volume (disk) device: fail gracefully if hald is not running
-----------------------------+----------------------------------------------
Reporter: sascha_silbe | Owner: tomeu
Type: defect | Status: new
Priority: Low | Milestone: Unspecified by Release Team
Component: sugar | Version: Git as of bugdate
Severity: Minor | Keywords:
Distribution: Unspecified | Status_field: New
-----------------------------+----------------------------------------------
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 [http://fedoraproject.org/wiki/Features/DeviceKit
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.
--
Ticket URL: <http://dev.sugarlabs.org/ticket/617>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list