[gnome-color-manager] trivial: Do not trigger usb-db if ID_MODEL already exists



commit 077c02b3e577ecdfb3a140ed8fa9389faa4197df
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 4 10:05:55 2010 +0000

    trivial: Do not trigger usb-db if ID_MODEL already exists

 rules/95-gcm-colorimeters.rules |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/rules/95-gcm-colorimeters.rules b/rules/95-gcm-colorimeters.rules
index 5d886b6..e0ac363 100644
--- a/rules/95-gcm-colorimeters.rules
+++ b/rules/95-gcm-colorimeters.rules
@@ -59,6 +59,7 @@ ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0300", ENV{GCM_COLORIMETER}="1", ENV
 ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2005", ENV{GCM_COLORIMETER}="1", ENV{GCM_TYPE_DISPLAY}="1"
 
 # color calibration device
-ENV{GCM_COLORIMETER}=="*?", IMPORT{program}="usb-db %p"
+ENV{GCM_COLORIMETER}=="*?", ENV{ID_MODEL}=="", IMPORT{program}="usb_id --export %p"
+ENV{GCM_COLORIMETER}=="*?", ENV{ID_MODEL_FROM_DATABASE}=="", IMPORT{program}="usb-db %p"
 
 LABEL="gcm_rules_end"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]