[Petter Reinholdtsen] > Michael Biebl tested to use hal-device --add to generate the > approporiate HAL event, but this one caused KDE to crash because > some value is missing. Posting it her to have it documented.
I investigated this some more by looking at the crash backtrace and reading the KDE soruce, and discovered that the missing value is block.storage_device. Not quite sure what its value should be, but using /org/freedesktop/Hal/devices/storage_serial_LTSP caused KDE to not crash any more. This script work, and causes a LTSP entry to show up in the list of removable devices: #!/bin/sh cat > /tmp/device-info.txt <<EOF block.is_volume = true (bool) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_LTSP' (string) info.capabilities = {'volume', 'block'} (string list) info.category = 'volume' (string) info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list) info.product = 'LTSP' (string) info.parent = '/org/freedesktop/Hal/devices/computer' (string) volume.fstype = 'ltspfs' (string) volume.fsusage = 'filesystem' (string) volume.ignore = false (bool) volume.is_disc = false (bool) volume.is_mounted = true (bool) volume.is_mounted_read_only = false (bool) volume.is_partition = false (bool) volume.label = 'LTSP' (string) volume.mount_point = '/media/test' (string) EOF hal-device --add LTSP < /tmp/device-info.txt To remove the entry again, this command can be used, referencing to the uid generated by HAL for the device: hal-device --remove /org/freedesktop/Hal/devices/LTSP This is only tested with KDE 4. No idea if it work with KDE 3. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org