Ticket #617 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

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
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

  Changed 4 years ago by tomeu

  • milestone changed from Unspecified by Release Team to 0.86

follow-up: ↓ 3   Changed 3 years ago by sascha_silbe

  • priority changed from Low to Unspecified by Maintainer
  • summary changed from volume (disk) device: fail gracefully if hald is not running to volume (disk) device: get rid of HAL
  • severity changed from Minor to Unspecified
  • milestone changed from 0.86 to Unspecified by Release Team

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.

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 3 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.

in reply to: ↑ 3   Changed 3 years ago by sascha_silbe

  • status changed from new to closed
  • resolution set to fixed

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.