On Sun, Dec 23, 2012 at 03:47:57PM +0100, Thomas Arp wrote: > now I made a first patch for the unix autodetection function during > application runtime. > At current stage it displays debug messages only. Hey, that's pretty cool. You're being really productive, congrats! > I think there is a way to get "allDrives" using dbus for detection > at application start, but i didn't check this yet. Well, dbus is an interprocess communication system. I am not sure whether you can actually enumarate devices through dbus. udev does this on Linux. > We can fetch the corresponding driver file (/dev/sdX) and the mountpoint. > I don't know if there is any way to get the vendor/product ids. > > Maybe it's enough to check if vendor/model strings are "Sony Hi-MD" > and if connection interface is usb to accept the drive as himd > device. An easy way would be to use udev which is unfortunately Linux-specific. udev emumerates devices and can assign device files according to specific properties (USB IDs, for example). With udev, you could have any HiMD/NetMD device known from a himd.rules/netmd.rules file assign the device file /dev/himdN or /dev/netmdN (N being an integer number). We might have to come up with an abstraction layer such that we have support for at least Linux, *BSD and MacOS X. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913