Opened 15 years ago

Closed 14 years ago

#617 closed defect (fixed)

volume (disk) device: get rid of HAL

Reported by: sascha_silbe Owned by: tomeu
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sugar Version: Git as of bugdate
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: New

Description

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.

Change History (4)

comment:1 Changed 15 years ago by tomeu

  • Milestone changed from Unspecified by Release Team to 0.86

comment:2 follow-up: Changed 14 years ago by sascha_silbe

  • Milestone changed from 0.86 to Unspecified by Release Team
  • Priority changed from Low to Unspecified by Maintainer
  • Severity changed from Minor to Unspecified
  • Summary changed from volume (disk) device: fail gracefully if hald is not running to volume (disk) device: get rid of HAL

HAL was just uninstalled again on my XO-1 because nothing except Sugar depends on it anymore. Everyone else is moving away from it; we should swim with the stream to avoid maintenance overhead. ;)
devicekit-disks is used by Gnome, so it looks like the way to go.

comment:3 in reply to: ↑ 2 ; follow-up: Changed 14 years ago by tomeu

Replying to sascha_silbe:

HAL was just uninstalled again on my XO-1 because nothing except Sugar depends on it anymore. Everyone else is moving away from it; we should swim with the stream to avoid maintenance overhead. ;)
devicekit-disks is used by Gnome, so it looks like the way to go.

Agreed, though we don't use the disks part of Hal anymore. Would be good if someone could identify the replacements for the remaining uses of Hal.

comment:4 in reply to: ↑ 3 Changed 14 years ago by sascha_silbe

  • Resolution set to fixed
  • Status changed from new to closed

Replying to tomeu:

Agreed, though we don't use the disks part of Hal anymore.

OK, closing as fixed then.

Note: See TracTickets for help on using tickets.