On Tue, 2009-07-14 at 18:32 +0200, Martin Pitt wrote:
> So, one immediate workaround would be to not pass the device ID
> itself, but the path (%p) and just read that value plus "/ieee1284_id"
> from the python program. That's a little tricky with identifying the
> ID at removal time, though (you'd need to remember the quoted one as
> well, i. e. consider that an abstract identifier for the real device
> ID).

Please take a look at the 'udev' branch of system-config-printer:

http://git.fedorahosted.org/git/?p=system-config-printer.git;a=shortlog;h=refs/heads/udev

I'm trying to use libudev to read the ieee1284_id attribute but am
failing.  The devpath I'm given is:
  /devices/pci0000:00/0000:00:1d.3/usb5/5-1

I can see that the file I need is:
  /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/ieee1284_id

but I can't see how to get to it.  How do I find out the name "5-1:1.0"?
(The code is currently trying usb_interface which is obviously wrong.)

Tim.
*/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devkit-devel mailing list
devkit-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/devkit-devel

Reply via email to