udev-ish replacement for hal-cups-utils?

Martin Pitt martin.pitt at ubuntu.com
Mon Jul 20 23:42:05 PDT 2009


Tim Waugh [2009-07-17 12:08 +0100]:
> 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

Can you please put this line on top of the .rules?

SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"

This will ensure that ID_USB_INTERFACES is actually present. (That was
the reason why it didn't work on my test system, since no other rule
invoked usb_id for printer devices yet).

The second test ensures that usb_id isn't called twice on a device.

Thanks!

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/devkit-devel/attachments/20090721/5ad233e9/attachment.pgp 


More information about the devkit-devel mailing list