On Thursday 01 February 2007 00:44, Neil Bothwick wrote: > There is a way round this. It is possible, somewhere in the config of > pmount/hal, to have devices mounted according to the /dev name only. I > can't remember where this is, but Google and/or grep should find it.
After some searching around I found the HAL 0.4.0 specs (http://people.redhat.com/davidz/hal-spec/hal-spec.html) offering all the info needed to write my own policy: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="block.is_volume" bool="true"> <match key="volume.fsusage" string="filesystem"> <match key="info.parent" string="/org/freedesktop/Hal/devices/storage_serial_KM_DYNAX_7D"> <merge key="volume.policy.desired_mount_point" type="string">camera</merge> </match> </match> </match> </device> </deviceinfo> The line that makes it work for me is the <match key="info.parent" .. > which is true when my camera (a dynax 7D) tries to create an mount point. The result is a /media/camera which I can use in digikam to import photo's.. > > Besides, the card > > isn't the camera.. so even on a logical level it's wacky.. > > If your camera mounts as USB-storage, the camera is simply acting as an > expensive card reader. True, but the card is also not the cardreader..;-) Anyhow, for me this works as it looks at the camera and not at the card.. Thanks for thinking along! Gerhard -- Ithaka photography, http://ithaka.mine.nu/ -- gentoo-user@gentoo.org mailing list