bruns added a comment.

  I think just checking for the property existance is correct:
  
  > /usr/lib/udev/rules.d/40-usb-media-players.rules
  > 
  >> ATTRS{vendor}=="*Apple*", ATTRS{model}=="*iPod*", 
ENV{ID_MEDIA_PLAYER}="apple_ipod"
  >>  ATTRS{model}=="*[iI][tT][uU][nN][eE][sS]*", ATTRS{idVendor}=="22b8", 
ATTRS{idProduct}=="4810", ENV{ID_MEDIA_PLAYER}="motorola_itunes-phone"
  >>  ATTRS{model}=="*Motorola Phone (V3i)*", ATTRS{idVendor}=="22b8", 
ATTRS{idProduct}=="4810", ENV{ID_MEDIA_PLAYER}="motorola_v3i"
  >> 
  >> 1. Series 60 phones ATTRS{model}=="S60", ATTRS{idVendor}=="0421", 
ATTRS{idProduct}=="*", ENV{ID_MEDIA_PLAYER}="nokia_series-60-phones" 
ATTRS{product}=="Rockbox media player", ATTRS{manufacturer}=="Rockbox.org", 
ENV{ID_MEDIA_PLAYER}="rockbox" ATTRS{vendor}=="[sS][oO][nN][yY]*", 
ATTRS{model}=="*PSP*", ENV{ID_MEDIA_PLAYER}="sony_psp"
  
  
  
  > /usr/lib/udev/rules.d/70-uaccess.rules
  > 
  >> SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"
  
  Maybe we should do the same for ID_GPHOTO2:
  
  > /usr/lib/udev/rules.d/70-uaccess.rules
  > 
  >> ENV{ID_GPHOTO2}=="?*", TAG+="uaccess"

REPOSITORY
  R245 Solid

REVISION DETAIL
  https://phabricator.kde.org/D21425

To: broulik, #frameworks, davidedmundson, bruns
Cc: kde-frameworks-devel, michaelh, ngraham, bruns

Reply via email to