D21425: [UDev Backend] Filter for ID_MEDIA_PLAYER already when querying

Stefan BrĂ¼ns noreply at phabricator.kde.org
Mon May 27 17:06:34 BST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190527/809d2daa/attachment.html>


More information about the Kde-frameworks-devel mailing list